diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-26 19:47:00 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-26 19:47:00 +0800 |
commit | 4523a00b91dbe98c6cb03acef362c5592973bcd3 (patch) | |
tree | 207aa9b3827cbf243d8f739e71a16c53ccbfe048 /rpc/api.go | |
parent | 9c4504dc41bbedb590db20519030224df66ce4b1 (diff) | |
download | go-tangerine-4523a00b91dbe98c6cb03acef362c5592973bcd3.tar go-tangerine-4523a00b91dbe98c6cb03acef362c5592973bcd3.tar.gz go-tangerine-4523a00b91dbe98c6cb03acef362c5592973bcd3.tar.bz2 go-tangerine-4523a00b91dbe98c6cb03acef362c5592973bcd3.tar.lz go-tangerine-4523a00b91dbe98c6cb03acef362c5592973bcd3.tar.xz go-tangerine-4523a00b91dbe98c6cb03acef362c5592973bcd3.tar.zst go-tangerine-4523a00b91dbe98c6cb03acef362c5592973bcd3.zip |
GetTxCountArgs
Diffstat (limited to 'rpc/api.go')
-rw-r--r-- | rpc/api.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/rpc/api.go b/rpc/api.go index 10d2e529e..6f3e78cc0 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -123,12 +123,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err return err } - err := args.requirements() - if err != nil { - return err - } - - *reply = api.xethAtStateNum(args.BlockNumber).TxCountAt(args.Address) + *reply = api.xethAtStateNum(args.BlockNumber).TxCountAt(args.Address.Hex()) case "eth_getBlockTransactionCountByHash": args := new(GetBlockByHashArgs) if err := json.Unmarshal(req.Params, &args); err != nil { |