diff --git a/ckb-api/src/test/java/org/nervos/api/mercury/BalanceTest.java b/ckb-api/src/test/java/org/nervos/api/mercury/BalanceTest.java index 36432b3d6..6a5076f23 100644 --- a/ckb-api/src/test/java/org/nervos/api/mercury/BalanceTest.java +++ b/ckb-api/src/test/java/org/nervos/api/mercury/BalanceTest.java @@ -188,7 +188,7 @@ void getBalanceByRecordByAddress() { GetBalanceResponse balance = ApiFactory.getApi().getBalance(builder.build()); assertNotNull(balance, "Balance is not empty"); System.out.println(g.toJson(balance)); - } catch (IOException e) { + } catch (Exception e) { e.printStackTrace(); } } diff --git a/ckb-mercury-sdk/src/main/java/org/nervos/mercury/model/resp/GetTransactionInfoResponse.java b/ckb-mercury-sdk/src/main/java/org/nervos/mercury/model/resp/GetTransactionInfoResponse.java index 6f113c84f..15461126c 100644 --- a/ckb-mercury-sdk/src/main/java/org/nervos/mercury/model/resp/GetTransactionInfoResponse.java +++ b/ckb-mercury-sdk/src/main/java/org/nervos/mercury/model/resp/GetTransactionInfoResponse.java @@ -1,14 +1,13 @@ package org.nervos.mercury.model.resp; import com.google.gson.annotations.SerializedName; -import org.nervos.ckb.type.transaction.TransactionWithStatus; /** @author zjh @Created Date: 2021/7/20 @Description: @Modify by: */ public class GetTransactionInfoResponse { public TransactionInfoResponse transaction; - public TransactionWithStatus.Status status; + public String status; @SerializedName("reject_reason") public Integer rejectReason;