aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-23 03:14:10 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-23 03:14:10 +0800
commit73b3f2837ff652533ca7a5c09cce4d37e13a852e (patch)
tree3863fc244172259b1d3a690363f1fc949668bbac
parent5f6c8832af98d9b8529b2ab771942f1536b0b081 (diff)
downloaddexon-73b3f2837ff652533ca7a5c09cce4d37e13a852e.tar
dexon-73b3f2837ff652533ca7a5c09cce4d37e13a852e.tar.gz
dexon-73b3f2837ff652533ca7a5c09cce4d37e13a852e.tar.bz2
dexon-73b3f2837ff652533ca7a5c09cce4d37e13a852e.tar.lz
dexon-73b3f2837ff652533ca7a5c09cce4d37e13a852e.tar.xz
dexon-73b3f2837ff652533ca7a5c09cce4d37e13a852e.tar.zst
dexon-73b3f2837ff652533ca7a5c09cce4d37e13a852e.zip
Handle bug in parent call response
-rw-r--r--rpc/api.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 66283752b..b23a9be15 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -189,7 +189,11 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
return err
}
// TODO unwrap the parent method's ToHex call
- *reply = newHexData(common.FromHex(v))
+ if v == "0x0" {
+ *reply = newHexData([]byte{})
+ } else {
+ *reply = newHexData(common.FromHex(v))
+ }
case "eth_flush":
return NewNotImplementedError(req.Method)
case "eth_getBlockByHash":