Commit 129fabdd authored by Taylor Gerring's avatar Taylor Gerring

Prefer hex prefixed with 0x

parent d9f8b1e0
...@@ -243,8 +243,8 @@ func (l *LogRes) MarshalJSON() ([]byte, error) { ...@@ -243,8 +243,8 @@ func (l *LogRes) MarshalJSON() ([]byte, error) {
} }
ext.Address = l.Address.Hex() ext.Address = l.Address.Hex()
ext.Data = common.Bytes2Hex(l.Data) ext.Data = common.ToHex(l.Data)
ext.Number = common.Bytes2Hex(big.NewInt(int64(l.Number)).Bytes()) ext.Number = common.ToHex(big.NewInt(int64(l.Number)).Bytes())
ext.Topics = make([]string, len(l.Topics)) ext.Topics = make([]string, len(l.Topics))
for i, v := range l.Topics { for i, v := range l.Topics {
ext.Topics[i] = v.Hex() ext.Topics[i] = v.Hex()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment