Skip to content

Update Sui how-to guide with corrected code and IDs #698

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

Merged
merged 4 commits into from
Jun 24, 2025

Conversation

Tzal3x
Copy link
Contributor

@Tzal3x Tzal3x commented May 15, 2025

Description

Currently the Sui tutorial is not working at all. Several issues: an incorrect Move contract and the use of a deprecated Sui Typescript library. Plus incorrect use of state ids.

This PR fixes those issues by making the following changes:

  1. The assertion in the Move contract was incorrect. Had to do an equal check instead.
  2. Updated the testnet pyth state id in the CLI example.
  3. The TS code was deprecated. Used the latest @mysten/sui instead.
  4. Added explanatory comments.

Type of Change

  • New Page
  • Page update/improvement
  • Fix typo/grammar
  • Restructure/reorganize content
  • Update links/references
  • Other (please describe):

Areas Affected

https://docs.pyth.network/price-feeds/use-real-time-data/sui

Checklist

  • I ran pre-commit run --all-files to check for linting errors
  • I have reviewed my changes for clarity and accuracy
  • All links are valid and working
  • Images (if any) are properly formatted and include alt text
  • Code examples (if any) are complete and functional
  • Content follows the established style guide
  • Changes are properly formatted in Markdown
  • Preview renders correctly in development environment

Related Issues

Closes #

Additional Notes

Contributor Information

Tzal3x added 2 commits May 15, 2025 17:30
1. The assertion in the Move contract was incorrect.
2. Update the testnet pyth state id in the CLI example.
3. The TS code was deprecated. Used the latest @mysten/sui instead.
4. Added explanatory comments.
Copy link

vercel bot commented May 15, 2025

@Tzal3x is attempting to deploy a commit to the Pyth Network Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented May 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2025 2:05pm
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2025 2:05pm

@Tzal3x
Copy link
Contributor Author

Tzal3x commented May 19, 2025

Hey @aditya520 , mind taking a look?

@Tzal3x
Copy link
Contributor Author

Tzal3x commented Jun 16, 2025

Hi, kind reminder regarding this PR as it would be beneficial for the community. @aditya520

@aditya520
Copy link
Member

My bad. I will review it this week.

Copy link
Contributor

@darunrs darunrs left a comment

Choose a reason for hiding this comment

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

This is awesome! Thank you so much for taking the time to make the changes. We appreciate it! And sorry for the long lag in getting this reviewed.

Just a small nit. Otherwise, this LGTM!

@Tzal3x
Copy link
Contributor Author

Tzal3x commented Jun 20, 2025

@aditya520 the PR should be good to merge if you don't have any extra comments.

@aditya520 aditya520 merged commit 8bd9e57 into pyth-network:main Jun 24, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants