diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-01 01:04:02 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-01 01:04:02 +0800 |
commit | 7e3875b52720bf7456c9dd6162caeb7250d3686e (patch) | |
tree | 7670c52c4170b814852be08c4f8ceb4b5d07bde1 /rpc/api.go | |
parent | a2501ecfcd0709db8bd43ecdc4077d072230fb28 (diff) | |
download | dexon-7e3875b52720bf7456c9dd6162caeb7250d3686e.tar dexon-7e3875b52720bf7456c9dd6162caeb7250d3686e.tar.gz dexon-7e3875b52720bf7456c9dd6162caeb7250d3686e.tar.bz2 dexon-7e3875b52720bf7456c9dd6162caeb7250d3686e.tar.lz dexon-7e3875b52720bf7456c9dd6162caeb7250d3686e.tar.xz dexon-7e3875b52720bf7456c9dd6162caeb7250d3686e.tar.zst dexon-7e3875b52720bf7456c9dd6162caeb7250d3686e.zip |
Remove custom MarshalJSON methods
Now formats based on underlying hexdata or hexnum type. Fields directly
with respective constructors that cover from native types
Diffstat (limited to 'rpc/api.go')
-rw-r--r-- | rpc/api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/api.go b/rpc/api.go index bce9a46e7..3f5d33da6 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -244,7 +244,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err } uhash := br.Uncles[args.Index] - uncle := NewBlockRes(api.xeth().EthBlockByHash(uhash.Hex())) + uncle := NewBlockRes(api.xeth().EthBlockByHash(uhash.String())) *reply = uncle case "eth_getUncleByBlockNumberAndIndex": @@ -262,7 +262,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err } uhash := v.Uncles[args.Index] - uncle := NewBlockRes(api.xeth().EthBlockByHash(uhash.Hex())) + uncle := NewBlockRes(api.xeth().EthBlockByHash(uhash.String())) *reply = uncle case "eth_getCompilers": |