mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 11:36:37 +00:00
eth_getTransactionCount now returns a hex string
This commit is contained in:
parent
3ea8c7301e
commit
47af2f02cb
1 changed files with 2 additions and 2 deletions
|
|
@ -122,8 +122,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
count := api.xethAtStateNum(args.BlockNumber).TxCountAt(args.Address)
|
||||||
*reply = api.xethAtStateNum(args.BlockNumber).TxCountAt(args.Address)
|
*reply = common.ToHex(big.NewInt(int64(count)).Bytes())
|
||||||
case "eth_getBlockTransactionCountByHash":
|
case "eth_getBlockTransactionCountByHash":
|
||||||
args := new(GetBlockByHashArgs)
|
args := new(GetBlockByHashArgs)
|
||||||
if err := json.Unmarshal(req.Params, &args); err != nil {
|
if err := json.Unmarshal(req.Params, &args); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue