fix account removal

feature/default_network_editable
brunobar79 6 years ago
parent 887cad973f
commit 34e3ec6092
  1. 3
      app/scripts/metamask-controller.js

@ -800,7 +800,8 @@ module.exports = class MetamaskController extends EventEmitter {
// Remove account from the preferences controller
this.preferencesController.removeAddress(address)
// Remove account from the account tracker controller
this.accountTracker.removeAccount(address)
this.accountTracker.removeAccount([address])
// Remove account from the keyring
await this.keyringController.removeAccount(address)
return address

Loading…
Cancel
Save