Skip to content

Commit

Permalink
fix(rpc): get_live_cell should be nullable (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
homura authored Jan 8, 2024
1 parent ccd8213 commit fa73c3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/kind-chefs-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ckb-lumos/rpc": minor
---

fix: `getLiveCell` should be nullable
4 changes: 3 additions & 1 deletion packages/rpc/src/Base/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export interface Base {
outPoint: CKBComponents.OutPoint,
withData: boolean
) => Promise<{
cell: CKBComponents.LiveCell;
cell: Option<CKBComponents.LiveCell>;
status: CKBComponents.CellStatus;
}>;

Expand Down Expand Up @@ -543,3 +543,5 @@ export class Base {
return this.#rpcProperties;
}
}

export type Option<T> = T | null;

2 comments on commit fa73c3e

@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-canary-fa73c3e-20240108060803

npm install @ckb-lumos/[email protected]

@vercel
Copy link

@vercel vercel bot commented on fa73c3e Jan 8, 2024

Choose a reason for hiding this comment

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

Please sign in to comment.