Breaking changes for Snaps in MetaMask Flask 10.17 #590
Montoya
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following are breaking changes for Snaps in the upcoming release of MetaMask Flask 10.17:
Migration to CommonJS style module export
CommonJS style module export: deprecate
wallet.registerRpcMessageHandler(...)and usemodule.exports.onRpcRequest = ...instead. As part of this change, the arguments of the function to be named were changed as well. See the examples below.Old style:
New style:
Encrypting snap state by default
Snap state (data stored with the manageState permission) will be encrypted by default. Any snap with stored state will need to be re-installed and the prior data will be lost.
Beta Was this translation helpful? Give feedback.
All reactions