diff options
author | Kobi Gurkan <kobigurk@gmail.com> | 2015-03-28 03:22:13 +0800 |
---|---|---|
committer | Kobi Gurkan <kobigurk@gmail.com> | 2015-03-28 03:22:13 +0800 |
commit | 47af2f02cb6b03d1fec1b0cecff8cab965b33edc (patch) | |
tree | 2d75600952fca29baae74984e247cb84c9478016 /rpc | |
parent | 3ea8c7301e6227467e39ae3daa0f382f06b16fba (diff) | |
download | dexon-47af2f02cb6b03d1fec1b0cecff8cab965b33edc.tar dexon-47af2f02cb6b03d1fec1b0cecff8cab965b33edc.tar.gz dexon-47af2f02cb6b03d1fec1b0cecff8cab965b33edc.tar.bz2 dexon-47af2f02cb6b03d1fec1b0cecff8cab965b33edc.tar.lz dexon-47af2f02cb6b03d1fec1b0cecff8cab965b33edc.tar.xz dexon-47af2f02cb6b03d1fec1b0cecff8cab965b33edc.tar.zst dexon-47af2f02cb6b03d1fec1b0cecff8cab965b33edc.zip |
eth_getTransactionCount now returns a hex string
Diffstat (limited to 'rpc')
-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 f2915f658..2b81fdd2b 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -122,8 +122,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err if err != nil { return err } - - *reply = api.xethAtStateNum(args.BlockNumber).TxCountAt(args.Address) + count := api.xethAtStateNum(args.BlockNumber).TxCountAt(args.Address) + *reply = common.ToHex(big.NewInt(int64(count)).Bytes()) case "eth_getBlockTransactionCountByHash": args := new(GetBlockByHashArgs) if err := json.Unmarshal(req.Params, &args); err != nil { |