Skip to content

Commit

Permalink
fixup: package versions UInt53
Browse files Browse the repository at this point in the history
  • Loading branch information
amnn committed Aug 15, 2024
1 parent b05ddff commit 168a824
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3133,7 +3133,7 @@ type Query {
optionally bounding the versions exclusively from below with `afterVersion`, or from above
with `beforeVersion`.
"""
packageVersions(first: Int, after: String, last: Int, before: String, address: SuiAddress!, afterVersion: Int, beforeVersion: Int): MovePackageConnection!
packageVersions(first: Int, after: String, last: Int, before: String, address: SuiAddress!, afterVersion: UInt53, beforeVersion: UInt53): MovePackageConnection!
"""
Fetch the protocol config by protocol version (defaults to the latest protocol
version known to the GraphQL service).
Expand Down
8 changes: 4 additions & 4 deletions crates/sui-graphql-rpc/src/types/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ impl Query {
last: Option<u64>,
before: Option<move_package::Cursor>,
address: SuiAddress,
after_version: Option<u64>,
before_version: Option<u64>,
after_version: Option<UInt53>,
before_version: Option<UInt53>,
) -> Result<Connection<String, MovePackage>> {
let Watermark { checkpoint, .. } = *ctx.data()?;

Expand All @@ -485,8 +485,8 @@ impl Query {
ctx.data_unchecked(),
page,
address,
after_version,
before_version,
after_version.map(|v| v.into()),
before_version.map(|v| v.into()),
checkpoint,
)
.await
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3137,7 +3137,7 @@ type Query {
optionally bounding the versions exclusively from below with `afterVersion`, or from above
with `beforeVersion`.
"""
packageVersions(first: Int, after: String, last: Int, before: String, address: SuiAddress!, afterVersion: Int, beforeVersion: Int): MovePackageConnection!
packageVersions(first: Int, after: String, last: Int, before: String, address: SuiAddress!, afterVersion: UInt53, beforeVersion: UInt53): MovePackageConnection!
"""
Fetch the protocol config by protocol version (defaults to the latest protocol
version known to the GraphQL service).
Expand Down

0 comments on commit 168a824

Please sign in to comment.