Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [GraphQL/Owner] rootVersion: UInt53 #18966

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3033,7 +3033,7 @@ type Query {
state at the latest checkpoint known to the GraphQL RPC. Similarly, `Owner.asObject` will
return the object's version at the latest checkpoint.
"""
owner(address: SuiAddress!, rootVersion: Int): Owner
owner(address: SuiAddress!, rootVersion: UInt53): Owner
"""
The object corresponding to the given address at the (optionally) given version.
When no version is given, the latest version is returned.
Expand Down
4 changes: 2 additions & 2 deletions crates/sui-graphql-rpc/src/types/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ impl Query {
&self,
ctx: &Context<'_>,
address: SuiAddress,
root_version: Option<u64>,
root_version: Option<UInt53>,
) -> Result<Option<Owner>> {
let Watermark { checkpoint, .. } = *ctx.data()?;
Ok(Some(Owner {
address,
checkpoint_viewed_at: checkpoint,
root_version,
root_version: root_version.map(|v| v.into()),
}))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3037,7 +3037,7 @@ type Query {
state at the latest checkpoint known to the GraphQL RPC. Similarly, `Owner.asObject` will
return the object's version at the latest checkpoint.
"""
owner(address: SuiAddress!, rootVersion: Int): Owner
owner(address: SuiAddress!, rootVersion: UInt53): Owner
"""
The object corresponding to the given address at the (optionally) given version.
When no version is given, the latest version is returned.
Expand Down
Loading