diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-14 20:02:31 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-14 20:02:31 +0800 |
commit | 1a4cfc173eb3f62c5859d25744f3c0de119e1b59 (patch) | |
tree | b9bb63e04f872e4afa2bed3e25d23d7b5cdbc397 /ui/qt/qwhisper/whisper.go | |
parent | e2b7498c9dca34a1ebe29ba2eb6d5e1e2b48df5a (diff) | |
download | go-tangerine-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.tar go-tangerine-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.tar.gz go-tangerine-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.tar.bz2 go-tangerine-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.tar.lz go-tangerine-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.tar.xz go-tangerine-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.tar.zst go-tangerine-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.zip |
whisper, xeth/whisper, ui/qt/qwhispe: fix API polish breakages
Diffstat (limited to 'ui/qt/qwhisper/whisper.go')
-rw-r--r-- | ui/qt/qwhisper/whisper.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/qwhisper/whisper.go b/ui/qt/qwhisper/whisper.go index 3c2d0a4b9..50b0626f5 100644 --- a/ui/qt/qwhisper/whisper.go +++ b/ui/qt/qwhisper/whisper.go @@ -41,7 +41,7 @@ func (self *Whisper) Post(payload []string, to, from string, topics []string, pr TTL: time.Duration(ttl) * time.Second, To: crypto.ToECDSAPub(common.FromHex(to)), From: key, - Topics: whisper.TopicsFromString(topics...), + Topics: whisper.NewTopicsFromStrings(topics...), }) if err != nil { @@ -106,7 +106,7 @@ func filterFromMap(opts map[string]interface{}) (f whisper.Filter) { if topicList, ok := opts["topics"].(*qml.List); ok { var topics []string topicList.Convert(&topics) - f.Topics = whisper.TopicsFromString(topics...) + f.Topics = whisper.NewTopicsFromStrings(topics...) } return |