aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 19:47:00 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 19:47:00 +0800
commit4523a00b91dbe98c6cb03acef362c5592973bcd3 (patch)
tree207aa9b3827cbf243d8f739e71a16c53ccbfe048 /rpc/api.go
parent9c4504dc41bbedb590db20519030224df66ce4b1 (diff)
downloaddexon-4523a00b91dbe98c6cb03acef362c5592973bcd3.tar.gz
dexon-4523a00b91dbe98c6cb03acef362c5592973bcd3.tar.zst
dexon-4523a00b91dbe98c6cb03acef362c5592973bcd3.zip
GetTxCountArgs
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go7
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 {