candid
candid copied to clipboard
Fix: candiff accepts unary tuples as default
The candid values saved bydfx via didc were not accepted by candiff to diff, because of some mismatch of input being a tuple versus a (bare) un-tupled value.
This PR fixes this issue by changing the default behavior:
- introduces an unimplemented flag for accepted bare values (the old default).
- the new default matches what
didcproduces.
We can implement the old behavior when it blocks something. The missing code path traps as unimplemented.
Thanks. Will fix the failing tests (tomorrow) before merging, obviously. I forgot to run cargo test locally first.