mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Ensure ledger transport preference is set on import (#12557)
This commit is contained in:
parent
ca42f9ec9c
commit
4d63e97060
@ -1317,6 +1317,13 @@ export default class MetamaskController extends EventEmitter {
|
|||||||
accounts = await keyringController.getAccounts();
|
accounts = await keyringController.getAccounts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This must be set as soon as possible to communicate to the
|
||||||
|
// keyring's iframe and have the setting initialized properly
|
||||||
|
// Optimistically called to not block Metamask login due to
|
||||||
|
// Ledger Keyring GitHub downtime
|
||||||
|
const transportPreference = this.preferencesController.getLedgerTransportPreference();
|
||||||
|
this.setLedgerTransportPreference(transportPreference);
|
||||||
|
|
||||||
// set new identities
|
// set new identities
|
||||||
this.preferencesController.setAddresses(accounts);
|
this.preferencesController.setAddresses(accounts);
|
||||||
this.selectFirstIdentity();
|
this.selectFirstIdentity();
|
||||||
|
Loading…
Reference in New Issue
Block a user