Skip to content

Commit

Permalink
fix(mercury-rpc): Fix serialisation of transaction states (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengjianhui authored Oct 12, 2021
1 parent dcb5b20 commit 253855e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 253855e

Please sign in to comment.