From 73b3f2837ff652533ca7a5c09cce4d37e13a852e Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Wed, 22 Apr 2015 14:14:10 -0500 Subject: [PATCH] Handle bug in parent call response --- rpc/api.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpc/api.go b/rpc/api.go index 66283752bee1..b23a9be159b0 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":