Skip to content

Conversation

@kcsongor
Copy link
Contributor

This PR migrates the sui packages the new package system that was introduced in Sui 1.63 (https://github.com/MystenLabs/sui/blob/main/external-crates/move/crates/move-package-alt/MIGRATION.md).

This should hopefully allow downstream users of the wormhole packages to depend on a single branch/commit, and switch between networks (mainnet/testnet/local) easily.

douglasgalico
douglasgalico previously approved these changes Jan 18, 2026
@kcsongor kcsongor force-pushed the sui-package-update branch 3 times, most recently from cf3fd2c to 5918741 Compare January 20, 2026 21:01
@kcsongor kcsongor requested a review from djb15 as a code owner January 20, 2026 22:08
@kcsongor kcsongor force-pushed the sui-package-update branch 8 times, most recently from 1476c22 to 185729b Compare January 21, 2026 01:01
@kcsongor kcsongor requested a review from panoel as a code owner January 21, 2026 01:01
@kcsongor kcsongor force-pushed the sui-package-update branch 5 times, most recently from 4286096 to 93c0282 Compare January 23, 2026 05:22
@kcsongor kcsongor force-pushed the sui-package-update branch 5 times, most recently from 962f9a9 to b039d37 Compare February 3, 2026 17:15
With the new Move package management system (Sui 1.63+), packages no
longer have explicit addresses in Move.toml. The package address is 0x0
at compile time and gets assigned at publish time.

This broke tests because:
1. sui::package::test_publish creates an UpgradeCap with the given package ID
2. If we pass 0x0, authorize_upgrade fails with EAlreadyAuthorized
   because it checks cap.package != 0x0
3. assert_package_upgrade_cap derives expected addresses from types,
   which are 0x0 at test time, but our UpgradeCap needs a non-zero address

fix:
- Add TEST_PACKAGE_ADDR constants with non-zero dummy addresses
- Add complete_test_only() functions that skip the package address check
- Update test scenarios to use the new test-only setup functions
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.

2 participants