aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-04-17 06:17:40 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-04-17 06:17:40 +0800
commit545ff1e3f3d76202696f60336335536a083e610e (patch)
tree40be06796e6637745702d99908cbbf3f649d985b
parent2c2ddcbf8885bf509741105ec57967fe78c744fe (diff)
parent6388767df080679346b045336275b208285b97d6 (diff)
downloaddexon-545ff1e3f3d76202696f60336335536a083e610e.tar
dexon-545ff1e3f3d76202696f60336335536a083e610e.tar.gz
dexon-545ff1e3f3d76202696f60336335536a083e610e.tar.bz2
dexon-545ff1e3f3d76202696f60336335536a083e610e.tar.lz
dexon-545ff1e3f3d76202696f60336335536a083e610e.tar.xz
dexon-545ff1e3f3d76202696f60336335536a083e610e.tar.zst
dexon-545ff1e3f3d76202696f60336335536a083e610e.zip
Merge pull request #728 from tgerring/issue727
Fix RPC Call output when empty
-rw-r--r--rpc/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 4b61fa3a5..bf5066f9a 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -182,8 +182,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
if err != nil {
return err
}
-
- *reply = v
+ // TODO unwrap the parent method's ToHex call
+ *reply = newHexData(common.FromHex(v))
case "eth_flush":
return NewNotImplementedError(req.Method)
case "eth_getBlockByHash":