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.
-
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:rpc
to receive RPC requests withonRpcRequest
endowment:rpc: { dapps: true, snaps: true }
(Documentation here)wallet_enable
andwallet_installSnaps
have been removed in favor ofwallet_requestSnaps
(Documentation here)window.ethereum.request({ method: 'wallet_requestSnaps', params: { [snapId]: { version } }}
wallet_requestSnaps
will 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_dialog
and transaction insights now both exclusively use custom UI (Documentation here)snap_confirm
tosnap_dialog
.snap_confirm
is deprecated and will be removed.snap_manageState
now uses SIP-6 algorithm for encryptionsnap_manageState
; these snaps need to be reinstalled upon updatingwallet
global used by snaps has been removed and replaced with two new globals:snap
andethereum
ethereum
is an EIP-1193 provider and can be accessed by requesting theendowment:ethereum-provider
permissionsnap
is always exposed and can be used to access snap specific functions usingsnap.request()
snap_notify
snap_manageState
wallet_invokeSnap
wallet_invokeSnap
does 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 undefinedparams
snap_getAppKey
snap_getEntropy
(Documentation here)@metamask/snap-types
has been renamed to@metamask/snaps-types
Update: 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