GetTxCountArgs

This commit is contained in:
Taylor Gerring
2015-03-26 12:47:00 +01:00
parent 9c4504dc41
commit 4523a00b91
3 changed files with 57 additions and 23 deletions

View File

@ -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 {