Skip to content

Commit

Permalink
ts sdk: backward compatible getOwnedObject (MystenLabs#10333)
Browse files Browse the repository at this point in the history
related PR is MystenLabs#10275
  • Loading branch information
gegaowp authored Apr 3, 2023
1 parent 14b313e commit 27dec39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shiny-paws-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@mysten/sui.js": patch
---

Make getOwnedObjects backward compatible from 0.29 to 0.30.
3 changes: 2 additions & 1 deletion sdk/typescript/src/types/objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ export type CheckpointedObjectId = Infer<typeof CheckpointedObjectId>;

export const PaginatedObjectsResponse = object({
data: array(SuiObjectResponse),
nextCursor: nullable(ObjectId),
// TODO: remove union after 0.30.0 is released
nextCursor: union([nullable(ObjectId), nullable(CheckpointedObjectId)]),
hasNextPage: boolean(),
});
export type PaginatedObjectsResponse = Infer<typeof PaginatedObjectsResponse>;
Expand Down

0 comments on commit 27dec39

Please sign in to comment.