aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-14 20:02:31 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-14 20:02:31 +0800
commit1a4cfc173eb3f62c5859d25744f3c0de119e1b59 (patch)
treeb9bb63e04f872e4afa2bed3e25d23d7b5cdbc397 /xeth
parente2b7498c9dca34a1ebe29ba2eb6d5e1e2b48df5a (diff)
downloaddexon-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.tar
dexon-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.tar.gz
dexon-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.tar.bz2
dexon-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.tar.lz
dexon-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.tar.xz
dexon-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.tar.zst
dexon-1a4cfc173eb3f62c5859d25744f3c0de119e1b59.zip
whisper, xeth/whisper, ui/qt/qwhispe: fix API polish breakages
Diffstat (limited to 'xeth')
-rw-r--r--xeth/whisper.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xeth/whisper.go b/xeth/whisper.go
index 51caec8d6..342910b5c 100644
--- a/xeth/whisper.go
+++ b/xeth/whisper.go
@@ -36,7 +36,7 @@ func (self *Whisper) Post(payload string, to, from string, topics []string, prio
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 {
@@ -71,7 +71,7 @@ func (self *Whisper) Watch(opts *Options) int {
filter := whisper.Filter{
To: crypto.ToECDSAPub(common.FromHex(opts.To)),
From: crypto.ToECDSAPub(common.FromHex(opts.From)),
- Topics: whisper.TopicsFromString(opts.Topics...),
+ Topics: whisper.NewTopicsFromStrings(opts.Topics...),
}
var i int