浏览代码

Merge branch 'kobigurk-develop' into develop

Taylor Gerring 10 年之前
父节点
当前提交
3b20603eb1
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      rpc/api.go

+ 2 - 1
rpc/api.go

@@ -106,7 +106,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
 			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 {