Error: Arguments in constructor invocation for struct MyStruct do not match struct arguments in ABI
A nice quality-of-life feature would be to display an exact mismatch.
Exaple output:
Error: Arguments in constructor invocation for struct MyStruct do not match struct arguments in ABI:
- a: felt252
+ some_other_field: felt252
| b: felt252
Component the issue is related to
Cast - data transformer
Issue
At the moment, data transformer returns quite undescriptive error message when processing struct constructor invocation. Suppose we have a struct:
When we pass wrong invocation to data transformer, for example:
or
We get an error:
A nice quality-of-life feature would be to display an exact mismatch.
Exaple output: