Clear permssions during createNewVaultAndRestore (#8804)

One possible solution to #8787.
feature/default_network_editable
Thomas Huang 5 years ago committed by GitHub
parent bb087e3749
commit d9a4c60d99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/scripts/metamask-controller.js

@ -620,6 +620,10 @@ export default class MetamaskController extends EventEmitter {
// clear known identities
this.preferencesController.setAddresses([])
// clear permissions
this.permissionsController.clearPermissions()
// create new vault
const vault = await keyringController.createNewVaultAndRestore(password, seed)

Loading…
Cancel
Save