aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/responses.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-29 04:47:16 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-29 04:47:16 +0800
commit129fabddb27e21e503240ee250b2cbeb9e396cdc (patch)
treea005e5333022517304f2d4741bb494fe71f4b3c7 /rpc/responses.go
parentd9f8b1e0c145e9bd46fe3a78570310ed3bd7d09d (diff)
downloadgo-tangerine-129fabddb27e21e503240ee250b2cbeb9e396cdc.tar
go-tangerine-129fabddb27e21e503240ee250b2cbeb9e396cdc.tar.gz
go-tangerine-129fabddb27e21e503240ee250b2cbeb9e396cdc.tar.bz2
go-tangerine-129fabddb27e21e503240ee250b2cbeb9e396cdc.tar.lz
go-tangerine-129fabddb27e21e503240ee250b2cbeb9e396cdc.tar.xz
go-tangerine-129fabddb27e21e503240ee250b2cbeb9e396cdc.tar.zst
go-tangerine-129fabddb27e21e503240ee250b2cbeb9e396cdc.zip
Prefer hex prefixed with 0x
Diffstat (limited to 'rpc/responses.go')
-rw-r--r--rpc/responses.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/responses.go b/rpc/responses.go
index f5f3a33f3..d219ebd72 100644
--- a/rpc/responses.go
+++ b/rpc/responses.go
@@ -243,8 +243,8 @@ func (l *LogRes) MarshalJSON() ([]byte, error) {
}
ext.Address = l.Address.Hex()
- ext.Data = common.Bytes2Hex(l.Data)
- ext.Number = common.Bytes2Hex(big.NewInt(int64(l.Number)).Bytes())
+ ext.Data = common.ToHex(l.Data)
+ ext.Number = common.ToHex(big.NewInt(int64(l.Number)).Bytes())
ext.Topics = make([]string, len(l.Topics))
for i, v := range l.Topics {
ext.Topics[i] = v.Hex()