Эх сурвалжийг харах

Merge branch 'kobigurk-develop' into develop

Taylor Gerring 10 жил өмнө
parent
commit
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
 			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":
 	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 {