From 129fabddb27e21e503240ee250b2cbeb9e396cdc Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Sat, 28 Mar 2015 21:47:16 +0100 Subject: [PATCH] Prefer hex prefixed with 0x --- rpc/responses.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/responses.go b/rpc/responses.go index f5f3a33f3d..d219ebd72d 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()