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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Tzal3x
Copy link

@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)
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2025 2:39pm

@Tzal3x
Copy link
Author

Tzal3x commented May 19, 2025

Hey @aditya520 , mind taking a look?

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.

1 participant