aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-01 01:04:02 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-01 01:04:02 +0800
commit7e3875b52720bf7456c9dd6162caeb7250d3686e (patch)
tree7670c52c4170b814852be08c4f8ceb4b5d07bde1 /rpc/api.go
parenta2501ecfcd0709db8bd43ecdc4077d072230fb28 (diff)
downloadgo-tangerine-7e3875b52720bf7456c9dd6162caeb7250d3686e.tar
go-tangerine-7e3875b52720bf7456c9dd6162caeb7250d3686e.tar.gz
go-tangerine-7e3875b52720bf7456c9dd6162caeb7250d3686e.tar.bz2
go-tangerine-7e3875b52720bf7456c9dd6162caeb7250d3686e.tar.lz
go-tangerine-7e3875b52720bf7456c9dd6162caeb7250d3686e.tar.xz
go-tangerine-7e3875b52720bf7456c9dd6162caeb7250d3686e.tar.zst
go-tangerine-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.go4
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":