forked from cerc-io/plugeth
Use HashArgs for eth_getTransactionByHash
This commit is contained in:
parent
b4eef59b6f
commit
b9c9d6d798
@ -192,8 +192,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
|
|||||||
|
|
||||||
*reply = br
|
*reply = br
|
||||||
case "eth_getTransactionByHash":
|
case "eth_getTransactionByHash":
|
||||||
// HashIndexArgs used, but only the "Hash" part we need.
|
args := new(HashArgs)
|
||||||
args := new(HashIndexArgs)
|
|
||||||
if err := json.Unmarshal(req.Params, &args); err != nil {
|
if err := json.Unmarshal(req.Params, &args); err != nil {
|
||||||
}
|
}
|
||||||
tx, bhash, bnum, txi := api.xeth().EthTransactionByHash(args.Hash)
|
tx, bhash, bnum, txi := api.xeth().EthTransactionByHash(args.Hash)
|
||||||
|
Loading…
Reference in New Issue
Block a user