aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-21 14:08:33 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-21 14:08:33 +0800
commit670021da155ad0bddd88e38890efbd4052f22ac2 (patch)
treec3e0a56b1258b2f3c20da41406fb160dc8248e04 /rpc
parent28e1971272d5bab6aa683d3bbe711226ca1fef98 (diff)
downloadgo-tangerine-670021da155ad0bddd88e38890efbd4052f22ac2.tar
go-tangerine-670021da155ad0bddd88e38890efbd4052f22ac2.tar.gz
go-tangerine-670021da155ad0bddd88e38890efbd4052f22ac2.tar.bz2
go-tangerine-670021da155ad0bddd88e38890efbd4052f22ac2.tar.lz
go-tangerine-670021da155ad0bddd88e38890efbd4052f22ac2.tar.xz
go-tangerine-670021da155ad0bddd88e38890efbd4052f22ac2.tar.zst
go-tangerine-670021da155ad0bddd88e38890efbd4052f22ac2.zip
Rename topic to topics #544
Diffstat (limited to 'rpc')
-rw-r--r--rpc/responses.go6
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
}