Improve `readContract`'s error message
Clarification and motivation
Problem: ImportContractError
will be displayed in one line. The error
message contains two michelson types, and these types can get very big
(see:
https://github.com/tqtezos/stablecoin/pull/135#discussion_r530850855).
This makes the message really hard to read and to spot where the
difference between the two types is.
Additionally ICEUnexpectedParamType
/ICEUnexpectedStorageType
will
show the unexpected Type
with annotations and the expected Type
without annotations. Again, this makes it harder to spot the difference
between the two types, which can be very subtle.
Acceptance criteria
- When
readContract
fails due to a type mismatch, the expected and actual types are displayed in their own individual lines. - Both types are displayed without annotations.