We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cast - data transformer
At the moment, data transformer returns quite undescriptive error message when processing struct constructor invocation. Suppose we have a struct:
struct MyStruct { a: felt252, b: felt252 }
When we pass wrong invocation to data transformer, for example:
sncast [...] --calldata "MyStruct { a: 0x2137 }"
or
sncast [...] --calldata "MyStruct { some_other_field: 0x2137, b: 0x420 }"
We get an error:
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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:
sncast [...] --calldata "MyStruct { a: 0x2137 }"
or
sncast [...] --calldata "MyStruct { some_other_field: 0x2137, b: 0x420 }"
We get an error:
A nice quality-of-life feature would be to display an exact mismatch.
Exaple output:
The text was updated successfully, but these errors were encountered: