core icon indicating copy to clipboard operation
core copied to clipboard

fix: unwrap method call validator errors and add tests

Open shanejonas opened this issue 1 year ago • 0 comments

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

shanejonas avatar Oct 17 '24 15:10 shanejonas