diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 08:26:09 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 08:26:09 +0800 |
commit | 7e6c8a411d73f1406ec12d6a75225a2a60fdfa45 (patch) | |
tree | 85d86efa2716b7d230e12f8aaec36f004cb22cd3 | |
parent | 22546dcb5528109de910e722cfc1afd5446eb3eb (diff) | |
download | dexon-7e6c8a411d73f1406ec12d6a75225a2a60fdfa45.tar dexon-7e6c8a411d73f1406ec12d6a75225a2a60fdfa45.tar.gz dexon-7e6c8a411d73f1406ec12d6a75225a2a60fdfa45.tar.bz2 dexon-7e6c8a411d73f1406ec12d6a75225a2a60fdfa45.tar.lz dexon-7e6c8a411d73f1406ec12d6a75225a2a60fdfa45.tar.xz dexon-7e6c8a411d73f1406ec12d6a75225a2a60fdfa45.tar.zst dexon-7e6c8a411d73f1406ec12d6a75225a2a60fdfa45.zip |
fixes
-rw-r--r-- | rpc/api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/api.go b/rpc/api.go index cd34934cf..fcab90f3b 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -547,7 +547,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error args := new(HashIndexArgs) if err := json.Unmarshal(req.Params, &args); err != nil { } - tx := p.xeth().EthTransactionByHash(hash) + tx := p.xeth().EthTransactionByHash(args.Hash) if tx != nil { *reply = NewTransactionRes(tx) } @@ -736,7 +736,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error if err := json.Unmarshal(req.Params, &args); err != nil { return err } - *reply = p.xeth().Whisper().Messages(id) + *reply = p.xeth().Whisper().Messages(args.Id) // case "eth_register": // args, err := req.ToRegisterArgs() // if err != nil { |