From 863cda6c884b2568a5595997fcaa98e83c8148b9 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Mon, 24 Oct 2022 14:08:08 +0200 Subject: [PATCH] [FLASK] Clear snap state on restore (#16228) * Clear snap state on restore * Fix lint --- app/scripts/metamask-controller.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index f7b8390f1..abfa1ab98 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -2144,6 +2144,11 @@ export default class MetamaskController extends EventEmitter { // clear permissions this.permissionController.clearState(); + ///: BEGIN:ONLY_INCLUDE_IN(flask) + // Clear snap state + this.snapController.clearState(); + ///: END:ONLY_INCLUDE_IN + // clear accounts in accountTracker this.accountTracker.clearAccounts();