aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-12 21:02:44 +0800
committerobscuren <geffobscura@gmail.com>2015-05-12 21:02:44 +0800
commit260536a729337e47646d6d72d19d2095b6d71f4c (patch)
tree8997f0189756bf0fb80a7ecdc3997baa0e9c4c9e
parent66de3f0aa849849c5cf5ad84265f3f3ce8ca5282 (diff)
downloadgo-tangerine-260536a729337e47646d6d72d19d2095b6d71f4c.tar
go-tangerine-260536a729337e47646d6d72d19d2095b6d71f4c.tar.gz
go-tangerine-260536a729337e47646d6d72d19d2095b6d71f4c.tar.bz2
go-tangerine-260536a729337e47646d6d72d19d2095b6d71f4c.tar.lz
go-tangerine-260536a729337e47646d6d72d19d2095b6d71f4c.tar.xz
go-tangerine-260536a729337e47646d6d72d19d2095b6d71f4c.tar.zst
go-tangerine-260536a729337e47646d6d72d19d2095b6d71f4c.zip
rpc: hexData => hexNum
-rw-r--r--rpc/api.go4
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)