diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-19 18:49:58 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-19 18:49:58 +0800 |
commit | 03b8c6841be08f19db0f98cea6d0a6f4fd64736f (patch) | |
tree | 31a65eb925e10f94541d45e5095b4cedd98d81ab /rpc/packages.go | |
parent | fdecc11128596eadc00e7a7d81b856d844396c37 (diff) | |
download | dexon-03b8c6841be08f19db0f98cea6d0a6f4fd64736f.tar dexon-03b8c6841be08f19db0f98cea6d0a6f4fd64736f.tar.gz dexon-03b8c6841be08f19db0f98cea6d0a6f4fd64736f.tar.bz2 dexon-03b8c6841be08f19db0f98cea6d0a6f4fd64736f.tar.lz dexon-03b8c6841be08f19db0f98cea6d0a6f4fd64736f.tar.xz dexon-03b8c6841be08f19db0f98cea6d0a6f4fd64736f.tar.zst dexon-03b8c6841be08f19db0f98cea6d0a6f4fd64736f.zip |
Topics => Topic. Closes #343
Diffstat (limited to 'rpc/packages.go')
-rw-r--r-- | rpc/packages.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rpc/packages.go b/rpc/packages.go index 8aa604aa5..7044d9d12 100644 --- a/rpc/packages.go +++ b/rpc/packages.go @@ -349,7 +349,7 @@ func (self *EthereumApi) MessagesChanged(id int, reply *interface{}) error { } func (p *EthereumApi) WhisperPost(args *WhisperMessageArgs, reply *interface{}) error { - err := p.xeth.Whisper().Post(args.Payload, args.To, args.From, args.Topics, args.Priority, args.Ttl) + err := p.xeth.Whisper().Post(args.Payload, args.To, args.From, args.Topic, args.Priority, args.Ttl) if err != nil { return err } @@ -445,13 +445,13 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error } return p.NewFilterString(args, reply) case "eth_changed": - args, err := req.ToFilterChangedArgs() + args, err := req.ToIdArgs() if err != nil { return err } return p.FilterChanged(args, reply) case "eth_filterLogs": - args, err := req.ToFilterChangedArgs() + args, err := req.ToIdArgs() if err != nil { return err } @@ -504,7 +504,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error } return p.NewWhisperFilter(args, reply) case "shh_changed": - args, err := req.ToWhisperIdArgs() + args, err := req.ToIdArgs() if err != nil { return err } @@ -522,7 +522,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error } return p.HasWhisperIdentity(args, reply) case "shh_getMessages": - args, err := req.ToWhisperIdArgs() + args, err := req.ToIdArgs() if err != nil { return err } |