aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 20:37:11 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 20:37:11 +0800
commitb9c9d6d798b26942d69ec9d3c3e88a1b8f563fb6 (patch)
tree5981611eaa3531937c7047640c9e0ee7744a9ff9 /rpc
parentb4eef59b6f9631d22fdf62a2b1a40fe05209fccd (diff)
downloaddexon-b9c9d6d798b26942d69ec9d3c3e88a1b8f563fb6.tar
dexon-b9c9d6d798b26942d69ec9d3c3e88a1b8f563fb6.tar.gz
dexon-b9c9d6d798b26942d69ec9d3c3e88a1b8f563fb6.tar.bz2
dexon-b9c9d6d798b26942d69ec9d3c3e88a1b8f563fb6.tar.lz
dexon-b9c9d6d798b26942d69ec9d3c3e88a1b8f563fb6.tar.xz
dexon-b9c9d6d798b26942d69ec9d3c3e88a1b8f563fb6.tar.zst
dexon-b9c9d6d798b26942d69ec9d3c3e88a1b8f563fb6.zip
Use HashArgs for eth_getTransactionByHash
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 5e27890ce..8cc86103b 100644
--- a/rpc/api.go
+++ b/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)