Skip to content

Commit 21d1652

Browse files
committed
Fix
1 parent 636b0dd commit 21d1652

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/KeyringController.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'isomorphic-fetch';
2-
import AccountTrackerController from './AccountTrackerController';
32
import BaseController, { BaseConfig, BaseState, Listener } from './BaseController';
43
import PreferencesController from './PreferencesController';
54
import { Transaction } from './TransactionController';
@@ -39,7 +38,7 @@ export class KeyringController extends BaseController<BaseConfig, KeyringState>
3938
/**
4039
* List of required sibling controllers this controller needs to function
4140
*/
42-
requiredControllers = ['AccountTrackerController', 'PreferencesController'];
41+
requiredControllers = ['PreferencesController'];
4342

4443
/**
4544
* Creates a KeyringController instance
@@ -205,9 +204,7 @@ export class KeyringController extends BaseController<BaseConfig, KeyringState>
205204
*/
206205
async removeAccount(address: string) {
207206
const preferences = this.context.PreferencesController as PreferencesController;
208-
const accountTracker = this.context.AccountTrackerController as AccountTrackerController;
209207
preferences.removeIdentity(address);
210-
accountTracker.remove(address);
211208
await this.keyring.removeAccount(address);
212209
}
213210

0 commit comments

Comments
 (0)