rpc: hexData => hexNum

This commit is contained in:
obscuren 2015-05-12 15:02:44 +02:00
parent 66de3f0aa8
commit 260536a729

View File

@ -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)