dfinity / motoko

Simple high-level language for writing Internet Computer canisters
Apache License 2.0
515 stars 97 forks source link

Candid decoding: Improve handling of references #2231

Closed nomeata closed 3 years ago

nomeata commented 3 years ago

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: https://github.com/dfinity/motoko/pull/2225 can be merged

nomeata commented 3 years ago

I am kinda waiting for #2210 to be in, so that I don’t have to touch c code that gets removed anyways.