-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
Sui JSON support optional input #7118
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as well, but I think we should document this in https://github.com/MystenLabs/sui/blob/main/doc/src/reference/sui-json.md
Thanks! I think this solves #7142? |
Yes. But I will revert the changes in Sui JSON and move the u64 to String magic to the CLI, the u64 String checks in Sui JSON is correct. |
07e1dab
to
1440994
Compare
Moved the u64 -> String conversion to the CLI, also added more e2e tests. Sui Json will continue to enforce u64 String. |
I am not changing the Sui JSON u64 string enforcement logic, so don't need to change the doc. |
I was thinking of documenting how to encode |
ah! of course! will add that |
9d6ea18
to
cc225dd
Compare
hi @awelc, does this looks ok to you? |
cc225dd
to
9a47358
Compare
add delegation with optional amount e2e test
9a47358
to
6dd0a68
Compare
a fix to enable optional input via sui json.
example:
call --package 0x2 --module sui_system --function request_add_delegation_mul_coin --args 0x5 [0x75a556740fb6e45219b1069ca08143ab086e9283, 0x907ae3c07cba82c26e363097e56f2aa0837547c2, 0xcf9b1967ee44e060c36a9b93d8075a0ccefce803] [200000000000000] 0x0879e3ec427b091fc22c1f765fdec22ea71a2150 --gas-budget 10000
We are using array to represent optional values, empty array
[]
indicate None.