aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-22 20:24:26 +0800
committerobscuren <geffobscura@gmail.com>2015-02-22 20:24:26 +0800
commitbba85a207488d27819dc6f6f5758b80947ea200b (patch)
tree46ab6ed3f414d008019d8c35d90cf16ed0ef4dfd /rpc
parent483d96a89d68023360d211ab329400f4b960fe48 (diff)
downloaddexon-bba85a207488d27819dc6f6f5758b80947ea200b.tar
dexon-bba85a207488d27819dc6f6f5758b80947ea200b.tar.gz
dexon-bba85a207488d27819dc6f6f5758b80947ea200b.tar.bz2
dexon-bba85a207488d27819dc6f6f5758b80947ea200b.tar.lz
dexon-bba85a207488d27819dc6f6f5758b80947ea200b.tar.xz
dexon-bba85a207488d27819dc6f6f5758b80947ea200b.tar.zst
dexon-bba85a207488d27819dc6f6f5758b80947ea200b.zip
Added Number to logs
Diffstat (limited to 'rpc')
-rw-r--r--rpc/util.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/util.go b/rpc/util.go
index 29824bcdb..1939b3474 100644
--- a/rpc/util.go
+++ b/rpc/util.go
@@ -84,6 +84,7 @@ type Log struct {
Address string `json:"address"`
Topic []string `json:"topics"`
Data string `json:"data"`
+ Number uint64 `json:"number"`
}
func toLogs(logs state.Logs) (ls []Log) {
@@ -94,6 +95,7 @@ func toLogs(logs state.Logs) (ls []Log) {
l.Topic = make([]string, len(log.Topics()))
l.Address = toHex(log.Address())
l.Data = toHex(log.Data())
+ l.Number = log.Number()
for j, topic := range log.Topics() {
l.Topic[j] = toHex(topic)
}