1
0
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:
Thomas Huang 2020-06-13 18:42:39 -07:00 committed by GitHub
parent bb087e3749
commit d9a4c60d99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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