Commit b9c9d6d7 authored by Taylor Gerring's avatar Taylor Gerring

Use HashArgs for eth_getTransactionByHash

parent b4eef59b
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment