Use HashArgs for eth_getTransactionByHash

pull/626/head
Taylor Gerring 10 years ago
parent b4eef59b6f
commit b9c9d6d798
  1. 3
      rpc/api.go

@ -192,8 +192,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
*reply = br
case "eth_getTransactionByHash":
// HashIndexArgs used, but only the "Hash" part we need.
args := new(HashIndexArgs)
args := new(HashArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {
}
tx, bhash, bnum, txi := api.xeth().EthTransactionByHash(args.Hash)

Loading…
Cancel
Save