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
re: dfinity#221dfinity#203
Turns out you can actually get around candid's limitation on `IDLValue`. It just takes some careful rejiggering.
First, use `Reserved` to match anything. This seems like a valid use of `Reserved`, and should basically always be supported.
Second, use `deserialize_ignored_any` to actually get all the content with our own visitor (really just a copy of `IDLValueVisitor`). This is a little bit of a hack, but it works.
* feat: Remake tokens generic
re: #221#203
Turns out you can actually get around candid's limitation on `IDLValue`. It just takes some careful rejiggering.
First, use `Reserved` to match anything. This seems like a valid use of `Reserved`, and should basically always be supported.
Second, use `deserialize_ignored_any` to actually get all the content with `IDLValueVisitor`. This is a little bit of a hack, but it works.
As mentioned in #201, I was hoping to depend on the
http_request
interface fromic-utils
.Having worked around that issue I ran into another:
Panicked at 'internal error: entered unreachable code'
in thecandid
value parser.@chenyan-dfinity had some thoughts on how to address this in dfinity/candid#242
The text was updated successfully, but these errors were encountered: