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

not able to pass in none() to option<u128> param #124

Open
0xbe1 opened this issue Oct 22, 2024 · 0 comments
Open

not able to pass in none() to option<u128> param #124

0xbe1 opened this issue Oct 22, 2024 · 0 comments

Comments

@0xbe1
Copy link
Collaborator

0xbe1 commented Oct 22, 2024

https://run.thala.dev/?id=051b579e-ae28-4c51-ae5b-7603d60c5fe6

if i leave arg3 blank, it is parsed as some(0) rather than none(), see https://explorer.aptoslabs.com/txn/6170381414/payload?network=testnet

think we should fix this behavior. i think either solution is fine:

  • if blank, parse as none, otherwise some(x)
  • if [], parse as none, otherwise user need to pass in [x] and we parse that as some(x)
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

No branches or pull requests

1 participant