mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix account removal
This commit is contained in:
parent
887cad973f
commit
34e3ec6092
@ -800,7 +800,8 @@ module.exports = class MetamaskController extends EventEmitter {
|
|||||||
// Remove account from the preferences controller
|
// Remove account from the preferences controller
|
||||||
this.preferencesController.removeAddress(address)
|
this.preferencesController.removeAddress(address)
|
||||||
// Remove account from the account tracker controller
|
// Remove account from the account tracker controller
|
||||||
this.accountTracker.removeAccount(address)
|
this.accountTracker.removeAccount([address])
|
||||||
|
|
||||||
// Remove account from the keyring
|
// Remove account from the keyring
|
||||||
await this.keyringController.removeAccount(address)
|
await this.keyringController.removeAccount(address)
|
||||||
return address
|
return address
|
||||||
|
Loading…
Reference in New Issue
Block a user