diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-23 03:14:10 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-23 03:14:10 +0800 |
commit | 73b3f2837ff652533ca7a5c09cce4d37e13a852e (patch) | |
tree | 3863fc244172259b1d3a690363f1fc949668bbac /rpc | |
parent | 5f6c8832af98d9b8529b2ab771942f1536b0b081 (diff) | |
download | dexon-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
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api.go | 6 |
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": |