core
core copied to clipboard
fix: unwrap method call validator errors and add tests
Explanation
This removes the jsonrpc error wrapping that happens in the method call validator. Also adds a new error returned for when the parameter length is mismatched.
References
fixes this TODO item: https://github.com/MetaMask/core/pull/4784#discussion_r1801862444
Changelog
@metamask/package-a
- <CATEGORY>: Your change here
- <CATEGORY>: Your change here
@metamask/package-b
- <CATEGORY>: Your change here
- <CATEGORY>: Your change here
Checklist
- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
- [ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate
- [ ] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes