Flask 10.25 has been released! Look here for breaking changes. #1198
Replies: 5 comments 9 replies
-
|
As of this update, After successfully connecting to my snap using I am attempting to call it like so and am getting the following error
Any assistance would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
-
|
It finally worked! I'm not sure what exactly made it work.. The working code is as follows Thanks so much for the help! |
Beta Was this translation helpful? Give feedback.
-
|
Currently am facing issue with couple of things. I was able to add the I see that wallet is not a global and it's changed. But haven't found anything on how to use it on docs. Can someone help me out with this? |
Beta Was this translation helpful? Give feedback.
-
|
After the upgrade, when trying to connect/reconnect our snap, we get the following error Versions Code Snap Manifest |
Beta Was this translation helpful? Give feedback.
-
|
In my case, it was due to the okx wallet installation, disable that. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
MetaMask Flask 10.25 has been released to Chrome and Firefox today. This includes many significant changes to the Snaps API which are detailed below.
endowment:rpcto receive RPC requests withonRpcRequestendowment:rpc: { dapps: true, snaps: true }(Documentation here)wallet_enableandwallet_installSnapshave been removed in favor ofwallet_requestSnaps(Documentation here)window.ethereum.request({ method: 'wallet_requestSnaps', params: { [snapId]: { version } }}wallet_requestSnapswill now throw an error and roll back any changes made if installation of any snap fails. This means if you attempt to install multiple snaps in one request and one of those snaps fails to install, the entire set will be rolled back.snap_dialogand transaction insights now both exclusively use custom UI (Documentation here)snap_confirmtosnap_dialog.snap_confirmis deprecated and will be removed.snap_manageStatenow uses SIP-6 algorithm for encryptionsnap_manageState; these snaps need to be reinstalled upon updatingwalletglobal used by snaps has been removed and replaced with two new globals:snapandethereumethereumis an EIP-1193 provider and can be accessed by requesting theendowment:ethereum-providerpermissionsnapis always exposed and can be used to access snap specific functions usingsnap.request()snap_notifysnap_manageStatewallet_invokeSnapwallet_invokeSnapdoes not support undefined parameters anymorewindow.ethereum.request({ method: 'wallet_invokeSnap', params: { snapId: 'foo', request: { method: 'bar', params: undefined } } })is not valid, instead you must omit undefinedparamssnap_getAppKeysnap_getEntropy(Documentation here)@metamask/snap-typeshas been renamed to@metamask/snaps-typesUpdate: unfortunately the Cron Jobs API is broken in this release. A fix will be included in the next release of Flask. In the meantime, you can build Flask from the repository or install an older version if you need to use Cron Jobs.
Beta Was this translation helpful? Give feedback.
All reactions