aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 20:49:33 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 20:49:33 +0800
commit172b34351aeb03d0318d241c0941c27608448cfb (patch)
tree543ed4b302a5f959219827561f79b1b1d021ebba /rpc/api.go
parentb9c9d6d798b26942d69ec9d3c3e88a1b8f563fb6 (diff)
downloaddexon-172b34351aeb03d0318d241c0941c27608448cfb.tar.gz
dexon-172b34351aeb03d0318d241c0941c27608448cfb.tar.zst
dexon-172b34351aeb03d0318d241c0941c27608448cfb.zip
HashArgs fix + tests
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 8cc86103b..ee2a6a047 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -194,6 +194,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
case "eth_getTransactionByHash":
args := new(HashArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {
+ return err
}
tx, bhash, bnum, txi := api.xeth().EthTransactionByHash(args.Hash)
if tx != nil {