diff --git a/packages/keyring-controller/src/KeyringController.ts b/packages/keyring-controller/src/KeyringController.ts index add11e8183b..99084dcbc8b 100644 --- a/packages/keyring-controller/src/KeyringController.ts +++ b/packages/keyring-controller/src/KeyringController.ts @@ -2526,6 +2526,13 @@ export class KeyringController< } this.#keyrings = []; this.#unsupportedKeyrings = []; + + // We force this state update since the `AccountsController` is mirroring + // the keyrings array in its state (using `InternalAccount`s), and we want to + // ensure it's updated after a clear operation too. + this.update((state) => { + state.keyrings = []; + }); } /**