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

support reference types #153

Merged
merged 9 commits into from
Jan 5, 2021
Merged

support reference types #153

merged 9 commits into from
Jan 5, 2021

Conversation

chenyan-dfinity
Copy link
Contributor

@chenyan-dfinity chenyan-dfinity commented Dec 18, 2020

@chenyan-dfinity chenyan-dfinity merged commit ea2c72f into master Jan 5, 2021
@chenyan-dfinity chenyan-dfinity deleted the reference branch January 5, 2021 18:12
mergify bot pushed a commit to dfinity/motoko that referenced this pull request Feb 17, 2021
This PR:

  * Bumps candid to get the latest test suite, including dfinity/candid#153

  * Validate `service` and `func` types in the type table. Fixes: #2231.
    In particular

    - method names are valid UTF-8
    - method names are in strictly ascending order
    - method types are indeed function type
    - function annotations must be 0 or 1.

  * Updates IDL-Motoko.mo to not use the field hash when encoding
    otherwise unsupported Candid method names (such as ☃)

    This means that our type export is less surjective; see #1668 for a discussion of a possible fix.

  * Update `mo_id/*.rs` accordingly

  * Test cases for importing unrepresentable Candid types, including a new error code and a long error description.

  * The test suite runner will ignore such unsupported test cases.
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.

Support reference types
2 participants