aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisperv6/topic.go
diff options
context:
space:
mode:
Diffstat (limited to 'whisper/whisperv6/topic.go')
-rw-r--r--whisper/whisperv6/topic.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/whisper/whisperv6/topic.go b/whisper/whisperv6/topic.go
index 5ef7f6939..bf5da01e3 100644
--- a/whisper/whisperv6/topic.go
+++ b/whisper/whisperv6/topic.go
@@ -40,8 +40,8 @@ func BytesToTopic(b []byte) (t TopicType) {
}
// String converts a topic byte array to a string representation.
-func (topic *TopicType) String() string {
- return string(common.ToHex(topic[:]))
+func (t *TopicType) String() string {
+ return common.ToHex(t[:])
}
// MarshalText returns the hex representation of t.