Transaction insights are changing. Here's what that means for your Snap. #2301
Montoya
announced in
Announcements
Replies: 1 comment
-
Awesome!
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We will soon be rolling out a new version of transaction insights that introduces a different approach to how insights are fetched in MetaMask. In the current implementation, an insight is fetched when the user clicks on the insight tab to view the insight. Example:
tx-v1-ex.mov
Note that the insight loads after the tab is activated.
In a future update, transaction insights will be fetched as soon as the transaction is requested. This is necessary for Snaps to be able to return a severity flag, which warns the user before they confirm a potentially dangerous transaction.
What this means for transaction insight Snaps is that the Snap will be loaded on every transaction request, even if the insight is not viewed by the user. You may need to update your Snap logic as a result to account for this. If you have questions, please reply in this thread and we can support you on next steps.
Beta Was this translation helpful? Give feedback.
All reactions