Skip to content
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

fix(iota): fix PTB upgrade command #4960

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Conversation

Thoralf-M
Copy link
Member

Description of change

Fix the PTB upgrade command by converting the package_digest to a vector instead of an array, because the .pure() function otherwise doesn't add the required length prefix byte.

Links to any relevant issues

Fixes #4870

Type of change

  • Bug fix (a non-breaking change which fixes an issue)

How the change has been tested

Upgrading a package with a PTB command:
iota client ptb --assign upgrade_cap @0x7ccc6c2fe6a509e6266b17e57a109f393f435a30da748c5168448958eb47d826 --upgrade "../../examples/move/nft" upgrade_cap
https://explorer.rebased.iota.org/txblock/58pRmAPgB2o7aebpmjWQYW3wcXnsEuVq5EYvjtK67XVG

@Thoralf-M Thoralf-M requested a review from a team as a code owner January 21, 2025 17:05
Copy link

vercel bot commented Jan 21, 2025

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

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
apps-backend ⬜️ Ignored (Inspect) Jan 21, 2025 5:05pm
apps-ui-kit ⬜️ Ignored (Inspect) Jan 21, 2025 5:05pm
rebased-explorer ⬜️ Ignored (Inspect) Jan 21, 2025 5:05pm
wallet-dashboard ⬜️ Ignored (Inspect) Jan 21, 2025 5:05pm

@iota-ci iota-ci added dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group. labels Jan 21, 2025
@Thoralf-M Thoralf-M merged commit c99a12e into develop Jan 21, 2025
39 checks passed
@Thoralf-M Thoralf-M deleted the dev-tools/fix-ptb-upgrade branch January 21, 2025 19:20
tzakian pushed a commit to MystenLabs/sui that referenced this pull request Jan 22, 2025
# Description of change

Fix the PTB upgrade command by converting the package_digest to a vector
instead of an array, because the .pure() function otherwise doesn't add
the required length prefix byte.

Porting over iotaledger/iota#4960

## Type of change

- Bug fix (a non-breaking change which fixes an issue)

## How the change has been tested

Upgrading a package with a PTB command:
`sui client ptb --assign upgrade_cap
@0x6ed2d8b8587fd559e19e1c9d17a9ce8349abe32ff423df73ddfa2056759e90fc
--upgrade . upgrade_cap`

https://testnet.suivision.xyz/txblock/44egvNom79HtLwQinXcpenLbYfex3QSDriGzBpfk58Yx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI PTB --upgrade fails
4 participants