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

Unable to pass "Some None" to contract call #2344

Closed
claudebarde opened this issue Feb 16, 2023 · 2 comments · Fixed by #2442
Closed

Unable to pass "Some None" to contract call #2344

claudebarde opened this issue Feb 16, 2023 · 2 comments · Fixed by #2442
Assignees
Labels
bug Something isn't working
Milestone

Comments

@claudebarde
Copy link
Contributor

With the current implementation for contract call parameters, it is impossible to pass the value Some None to an entrypoint that requires a value of type option (option timestamp), for example.
Although this is an edge case, Taquito should provide a more intuitive way to pass options and nested options as contract call parameters, as the current way becomes inefficient or even broken with nested options.

@claudebarde claudebarde added the bug Something isn't working label Feb 16, 2023
@Innkst Innkst added this to the v16.1 milestone Feb 17, 2023
@hui-an-yang hui-an-yang self-assigned this Mar 16, 2023
@hui-an-yang
Copy link
Collaborator

hui-an-yang commented Mar 29, 2023

We are looking to support nested options contract call with methodsObject in our next release by introducing new semantics. And will deprecate the current semantic in the subsequent release for semantic consistency.
image

@claudebarde
Copy link
Contributor Author

The solutions in the subsequent release column look great :)

@Innkst Innkst modified the milestones: v16.1, v16.2 Apr 11, 2023
dsawali pushed a commit that referenced this issue Apr 19, 2023
* fix: current work to support nested option

re #2344

* simplify option encode

* feat: supporting nested option of some(none) in encodeObject and encode(limitation)

re #2344

* revert: implementation and test of nested options with encode (due to limitation)

re #2344

* test: added integration tests and documentation

re #2344

---------

Co-authored-by: Alireza Haghshenas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants