-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Package Reference Bug #21254
Comments
Thank you for opening this issue, a team member will review it shortly. Until then, please do not interact with any users that claim to be from Sui support and do not click on any links! |
Hi @qxyanda, thanks for your question. On sui, the original published ID of the package is used as an identifier for all versions of the package in the bytecode. Each published package also contains a linkage table that maps these original IDs to the object ID of the package that will be used at run time. This structure is designed to support dependency overriding. So if you are using Navi Protocol version 20 that is published at I don't see the link to your published package, so I'm not sure if that answers your question, but I hope it helps! |
thanks for reply!
this is my published code from suivison:
here in function "deposit", there is a call for 0xd899cf7d2b5db716bd2cf55599fb0d5ee38a3061e7b6bb6eebf73fa5bc4c81ca::incentive_v2::entry_deposit i want to call 0x834a86970ae93a73faf4fff16ae40bdb72b91c47be585fff19a2af60a19ddca3::incentive_v2::entry_deposit instead, how can i get it right |
I want to reference the latest version 21 of the Navi package, but after publishing, I found that the function being called is still from version 1. Of course, the variable types are compatible with version 1, but the functions have a version check.
here is my published package:
the function
should be
how can i fix this problem?
this is my .toml below
The text was updated successfully, but these errors were encountered: