1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 11:28:51 +01:00

[FLASK] Clear snap state on restore (#16228)

* Clear snap state on restore

* Fix lint
This commit is contained in:
Frederik Bolding 2022-10-24 14:08:08 +02:00 committed by GitHub
parent 359f782e7e
commit 863cda6c88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();