mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Clear permssions during createNewVaultAndRestore (#8804)
One possible solution to #8787.
This commit is contained in:
parent
bb087e3749
commit
d9a4c60d99
@ -620,6 +620,10 @@ export default class MetamaskController extends EventEmitter {
|
|||||||
|
|
||||||
// clear known identities
|
// clear known identities
|
||||||
this.preferencesController.setAddresses([])
|
this.preferencesController.setAddresses([])
|
||||||
|
|
||||||
|
// clear permissions
|
||||||
|
this.permissionsController.clearPermissions()
|
||||||
|
|
||||||
// create new vault
|
// create new vault
|
||||||
const vault = await keyringController.createNewVaultAndRestore(password, seed)
|
const vault = await keyringController.createNewVaultAndRestore(password, seed)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user