diff --git a/packages/keyring-controller/src/KeyringController.test.ts b/packages/keyring-controller/src/KeyringController.test.ts index b79fec41d10..b9da878dfbf 100644 --- a/packages/keyring-controller/src/KeyringController.test.ts +++ b/packages/keyring-controller/src/KeyringController.test.ts @@ -110,6 +110,7 @@ describe('KeyringController', () => { currentKeyringMemState.keyrings[0].accounts, ), ).toBe(true); + expect(preferences.setSelectedAddress.called).toBe(false); }); }); diff --git a/packages/keyring-controller/src/KeyringController.ts b/packages/keyring-controller/src/KeyringController.ts index 0ef55b7eaeb..ceb07aed0ff 100644 --- a/packages/keyring-controller/src/KeyringController.ts +++ b/packages/keyring-controller/src/KeyringController.ts @@ -226,7 +226,6 @@ export class KeyringController extends BaseController< const addedAccountAddress = newAccounts.find( (selectedAddress: string) => !oldAccounts.includes(selectedAddress), ); - this.setSelectedAddress(addedAccountAddress); return { keyringState: await this.fullUpdate(), addedAccountAddress,