Skip to content

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

@socket-security
Copy link

socket-security bot commented Oct 9, 2024

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

Package New capabilities Transitives Size Publisher
npm/@metamask/eth-json-rpc-middleware@15.0.0 network +10 995 kB metamaskbot
npm/@metamask/providers@18.1.0 None +5 691 kB metamaskbot

🚮 Removed packages: npm/@metamask/eth-json-rpc-middleware@14.0.2, npm/@metamask/providers@17.2.1

View full report↗︎

@legobeat legobeat mentioned this pull request Oct 9, 2024
@FrederikBolding
Copy link
Member

Done in #2853

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants