You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest Candid test suite extensions show that our decoding of service and function references isn’t great (need to do stricter checking in the type table).
Shouldn’t be too hard, but is also not too pressing, so maybe a small story in the next sprint. Or just general plate cleaning soonish.
This PR:
* Bumps candid to get the latest test suite, including
http://r.duckduckgo.com/l/?uddg=https://github.com/dfinity/candid/issues/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 ☃)
* Update `mo_id/*.rs` accordingly
* The test suite runner will ignore such unsupported test cases.
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.
The latest Candid test suite extensions show that our decoding of service and function references isn’t great (need to do stricter checking in the type table).
Shouldn’t be too hard, but is also not too pressing, so maybe a small story in the next sprint. Or just general plate cleaning soonish.
Demo: #2225 can be merged
The text was updated successfully, but these errors were encountered: