sui
sui copied to clipboard
Feature for sui client ptb allowing to call published package during dry-run in the same transaction
Description
I made it possible for sui client ptb to call published or upgraded package in the same transaction for testing purposes.
The purpose of this feature is to allow testing if packages are working correctly on mainnet without publishing them there. I use it myself for testing some ideas. Usage is simple - after publishing package just use 0x00 to call it. For example:
sui client ptb --dry-run --with-unpublished-dependencies --skip-dependency-verification \
--publish "." \
--assign upgrade_cap \
--transfer-objects "[upgrade_cap]" @0x10 \
--move-call "0x00::my_package::hello_world" \
arg1 arg2
I am not experienced enough to fully implement this feature myself to be production ready so I save this PR only as a draft. Feel free to add it yourself or eventually write me instructions what you need to implement it so I'll add missing parts.
Btw: I merge it to mainnet in this PR only because I use it myself in mainnet branch. If you are OK with adding this feature then I can create PR for development branch.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| sui-docs | ❌ Failed (Inspect) | Apr 8, 2025 10:38am |
2 Skipped Deployments
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| multisig-toolkit | ⬜️ Ignored (Inspect) | Visit Preview | Apr 8, 2025 10:38am | |
| sui-kiosk | ⬜️ Ignored (Inspect) | Visit Preview | Apr 8, 2025 10:38am |
Thanks @bbarwik and congrats on taking on this code and making it work. I will have a closer look soon.