Narrow mismatch when throwing AbiError::TypeMismatch
on large types
#3560
Labels
enhancement
New feature or request
AbiError::TypeMismatch
on large types
#3560
Problem
When passing an invalid value for a type when ABI encoding we throw the
AbiError::TypeMismatch
error.noir/tooling/noirc_abi/src/errors.rs
Lines 41 to 42 in 026a358
This prints out the passed value and the type which it is supposed to satisfy. The trouble with this is that it can be hard to find the reason for the mismatch when dealing with large complicated types.
Happy Case
Ideally the ABI encoder would gives more information on why the type and value don't match when throwing this error.
Alternatives Considered
No response
Additional Context
#3533 (comment)
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: