Remove custom MarshalJSON methods
Now formats based on underlying hexdata or hexnum type. Fields directly with respective constructors that cover from native types
This commit is contained in:
@ -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":
|
||||
|
Reference in New Issue
Block a user