javasdk
javasdk copied to clipboard
bugs
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版本)