diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-21 21:53:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-21 21:53:12 +0800 |
commit | 004f5008ff2fe33e862d3f86dd3edd2f7d3a4694 (patch) | |
tree | 22c690ef8bfb38c90aa02c2017a5a0b7407dc0cc | |
parent | 38c7c589e4a1b08baaab5b81de6aca7fa853d284 (diff) | |
parent | 670021da155ad0bddd88e38890efbd4052f22ac2 (diff) | |
download | dexon-004f5008ff2fe33e862d3f86dd3edd2f7d3a4694.tar dexon-004f5008ff2fe33e862d3f86dd3edd2f7d3a4694.tar.gz dexon-004f5008ff2fe33e862d3f86dd3edd2f7d3a4694.tar.bz2 dexon-004f5008ff2fe33e862d3f86dd3edd2f7d3a4694.tar.lz dexon-004f5008ff2fe33e862d3f86dd3edd2f7d3a4694.tar.xz dexon-004f5008ff2fe33e862d3f86dd3edd2f7d3a4694.tar.zst dexon-004f5008ff2fe33e862d3f86dd3edd2f7d3a4694.zip |
Merge branch 'rpcfrontier' into develop
-rw-r--r-- | rpc/responses.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/responses.go b/rpc/responses.go index a3613f380..0a0cd107a 100644 --- a/rpc/responses.go +++ b/rpc/responses.go @@ -215,7 +215,7 @@ type FilterWhisperRes struct { type LogRes struct { Address string `json:"address"` - Topic []string `json:"topic"` + Topics []string `json:"topics"` Data string `json:"data"` Number uint64 `json:"number"` } @@ -225,12 +225,12 @@ func NewLogsRes(logs state.Logs) (ls []LogRes) { for i, log := range logs { var l LogRes - l.Topic = make([]string, len(log.Topics())) + l.Topics = make([]string, len(log.Topics())) l.Address = common.ToHex(log.Address()) l.Data = common.ToHex(log.Data()) l.Number = log.Number() for j, topic := range log.Topics() { - l.Topic[j] = common.ToHex(topic) + l.Topics[j] = common.ToHex(topic) } ls[i] = l } |