javasdk icon indicating copy to clipboard operation
javasdk copied to clipboard

bugs

Open glowwormX opened this issue 4 years ago • 0 comments

sdk1.0.3

1、TxService.getTransactionsCountByContractAddr返回的json不应该用TxResponse序列化

    @Override
    public Request<TxResponse> getTransactionsCountByContractAddr(String from, String to, String contractAddress, boolean txExtra, int... nodeIds) {
        TxRequest txRequest = new TxRequest(TX_PREFIX + "getTransactionsCountByContractAddr", providerManager, TxResponse.class, nodeIds);

        HashMap<String, Object> params = new HashMap<>();
        params.put("from", from);
        params.put("to", to);
        params.put("address", contractAddress);
        params.put("txExtra", txExtra);
        txRequest.addParams(params);

        return txRequest;
    }

2、TxService.getNextPageTransactions 执行栈溢出

    @Override
    public Request<TxResponse> getNextPageTransactions(BigInteger blkNumber, BigInteger txIndex, BigInteger minBlkNumber, BigInteger maxBlkNumber, BigInteger separated, BigInteger pageSize, boolean containCurrent, String address, int... nodeIds) {
        return getNextPageTransactions(blkNumber, txIndex, minBlkNumber, maxBlkNumber, separated, pageSize, containCurrent, address, nodeIds);
    }

3、NodeStateResponse.NodeState 无hostname字段,返回的json有该字段(hyperchain1.8版本)

glowwormX avatar May 13 '21 08:05 glowwormX