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(sui): fix Option<address> serialization in client_ptb #21126

Merged

Conversation

Thoralf-M
Copy link
Contributor

@Thoralf-M Thoralf-M commented Feb 6, 2025

Description of change

Handle serialization for Option< address > in a PTB, since TypeTag for an Option is a vector<T> it needed to be handled extra

Porting over iotaledger/iota#5143

Type of change

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

How the change has been tested

Running this command connected to the testnet

cargo run client ptb \
--assign addr "some(@0x2d4b94541bbfcce2ed51e5b0fb73e02bd809e04f1a0601797a6028e6a00b6607)" \
--move-call 0xc9586aae0485f0975167ef0261db81a4011d3255cfa0128dc2f7cc3b72135aaf::example::optional_address_param addr \
--dry-run

Copy link

vercel bot commented Feb 6, 2025

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

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 11, 2025 2:30am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Feb 11, 2025 2:30am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Feb 11, 2025 2:30am

@stefan-mysten
Copy link
Contributor

Thanks @Thoralf-M!

@stefan-mysten stefan-mysten force-pushed the option-address-serialization branch from 5632055 to 52bbc2c Compare February 11, 2025 02:27
@stefan-mysten stefan-mysten temporarily deployed to sui-typescript-aws-kms-test-env February 11, 2025 02:28 — with GitHub Actions Inactive
@stefan-mysten stefan-mysten merged commit 621ea54 into MystenLabs:main Feb 11, 2025
43 checks passed
@Thoralf-M Thoralf-M deleted the option-address-serialization branch February 12, 2025 11:42
zeevmoney added a commit to dwallet-labs/sui that referenced this pull request Feb 12, 2025
* 'main' of https://github.com/MystenLabs/sui: (84 commits)
  [Consensus] enable the new linearize logic for devnet. (MystenLabs#21172)
  Minor change to indicate that GraphQL is at alpha, not at beta (MystenLabs#21169)
  feat: add zklogin verify endpoint to jsonrpc (MystenLabs#21166)
  [sui-adapter] Remove error traces from native functions (MystenLabs#21185)
  [consensus] Enable zstd compression for consensus tonic network in mainnet (MystenLabs#21177)
  Reduce thread stall log level from ERROR to WARN (MystenLabs#21175)
  proto: sort fds files for stable codegen
  rpc: impl Name for google.rpc types
  rpc: properly return error code
  rpc: remove reqwest dependency
  grpc: add protos for more well known types
  proto: rework directory structure to conform with standards
  Update publish.mdx (MystenLabs#21170)
  Update ptb.mdx (MystenLabs#21171)
  [exp-to-insta][14/14] Cleanup of insta_assert macro (MystenLabs#21114)
  fix(sui): fix Option<address> serialization in client_ptb (MystenLabs#21126)
  [exp-to-insta][13/n] Cleanup insta migration (MystenLabs#21113)
  [exp-to-insta][12/n] Migrate move-analyzer (MystenLabs#21112)
  [exp-to-insta][11/n] Migrate move-stackless-bytecode and move-model (MystenLabs#21111)
  [exp-to-insta][10/n] Migrate move-unit-test (MystenLabs#21109)
  ...
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