Skip to content

Conversation

@crusso
Copy link
Contributor

@crusso crusso commented Mar 17, 2025

Description

Fixes decoding of variants under option types, allowing compatible tagged values from wider options, defaulting incompatible tagged values to null.

Brings decoding of options closer to spec, but see child PR #981 for the remaining edge cases.

This PR is marked do not merge until #981 is merged into this one.

How Has This Been Tested?

See PR for additional candid tests.

Checklist:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

What CHANGELOG?

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2025

size-limit report 📦

Path Size
@dfinity/agent 71.97 KB (-0.06% 🔽)
@dfinity/candid 11.75 KB (+0.41% 🔺)
@dfinity/principal 4.21 KB (0%)
@dfinity/auth-client 50.17 KB (+0.17% 🔺)
@dfinity/assets 67.9 KB (+0.09% 🔺)
@dfinity/identity 47.73 KB (+0.07% 🔺)
@dfinity/identity-secp256k1 106.62 KB (+0.03% 🔺)

@crusso crusso changed the title experiment: add backtracking to opt decoding fix: add backtracking to opt decoding Mar 17, 2025
@crusso crusso marked this pull request as ready for review March 18, 2025 01:24
@crusso crusso requested a review from a team as a code owner March 18, 2025 01:24
@crusso
Copy link
Contributor Author

crusso commented Mar 19, 2025

Closing in favor of #981 (which incorporates these changes)

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.

3 participants