forked from cerc-io/plugeth
rpc: hexData => hexNum
This commit is contained in:
parent
66de3f0aa8
commit
260536a729
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user