diff options
-rw-r--r-- | rpc/api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/api.go b/rpc/api.go index 774d26ea2..066c81222 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -194,9 +194,9 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err // TODO unwrap the parent method's ToHex call if len(gas) == 0 { - *reply = newHexData([]byte{}) + *reply = newHexNum(0) } else { - *reply = newHexData(gas) + *reply = newHexNum(gas) } case "eth_call": v, _, err := api.doCall(req.Params) |