Skip to content
New issue

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

deps: @metamask/rpc-errors@^6.3.1->^7.0.0 #2817

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

legobeat
Copy link
Contributor

@legobeat legobeat commented Oct 9, 2024


Open question

Currently snaps-rpc-methods tests fail because some errors now have the new (old) behavior of not wrapping error messages.

Haven't figured out if there is something else at play as well/instead but looks like at least @metamask/json-rpc-engine calls serializeError with default arguments which are not currently overridable (though that dependency is still on v6 so TBD)

If the above is correct, which of these options are preferred?

  1. Add/rewrite middleware in snaps to handle this
  2. Add constructor option to JsonRpcEngine to allow overriding serializeError options
  3. Rewrite tests in snaps-rpc-methods to accomodate to new defaults

Related

Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/[email protected] None 0 171 kB metamaskbot

View full report↗︎

@legobeat legobeat mentioned this pull request Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant