aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-16 01:45:20 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-16 01:45:20 +0800
commit6388767df080679346b045336275b208285b97d6 (patch)
tree2582345d4d30550edfed8c7d7cdd3bf010164f05 /rpc
parentec6cbb914b4e3070ad2fd6194c2fa6de2c1080cc (diff)
downloadgo-tangerine-6388767df080679346b045336275b208285b97d6.tar
go-tangerine-6388767df080679346b045336275b208285b97d6.tar.gz
go-tangerine-6388767df080679346b045336275b208285b97d6.tar.bz2
go-tangerine-6388767df080679346b045336275b208285b97d6.tar.lz
go-tangerine-6388767df080679346b045336275b208285b97d6.tar.xz
go-tangerine-6388767df080679346b045336275b208285b97d6.tar.zst
go-tangerine-6388767df080679346b045336275b208285b97d6.zip
Fix call output when empty
Diffstat (limited to 'rpc')
-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":