Skip to content

Commit

Permalink
fix(rpc): lack of the reason field in TxStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
homura committed Sep 28, 2023
1 parent 0b9b247 commit b6f6a00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/rpc/src/resultFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ const toTransactionWithStatus = <Tx>(
txStatus: {
blockHash,
status,
...("reason" in txWithStatus.tx_status
? { reason: txWithStatus.tx_status.reason }
: {}),
},
timeAddedToPool: time_added_to_pool,
...rest,
Expand Down
1 change: 1 addition & 0 deletions packages/rpc/src/types/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export namespace RPC {
| TransactionStatus.Proposed
| TransactionStatus.Rejected
| TransactionStatus.Unknown;
reason?: string;
};
time_added_to_pool: Uint64 | null;
cycles: Uint64 | null;
Expand Down

1 comment on commit b6f6a00

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 New canary release: 0.0.0-ckb2023-b6f6a00-20230928071950

npm install @ckb-lumos/[email protected]

Please sign in to comment.