mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Don't bother changing selected accounts since accounts are recovered
This commit is contained in:
parent
cf3951c9df
commit
291403c13f
@ -427,14 +427,8 @@ module.exports = class MetamaskController {
|
|||||||
|
|
||||||
markAccountsFound(cb) {
|
markAccountsFound(cb) {
|
||||||
this.configManager.setLostAccounts([])
|
this.configManager.setLostAccounts([])
|
||||||
this.keyringController.getAccounts()
|
this.sendUpdate()
|
||||||
.then((accounts) => {
|
cb(null, this.getState())
|
||||||
return this.keyringController.setSelectedAccount(accounts[0])
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
this.sendUpdate()
|
|
||||||
cb(null, this.getState())
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Migrate Old Vault If Any
|
// Migrate Old Vault If Any
|
||||||
@ -461,11 +455,7 @@ module.exports = class MetamaskController {
|
|||||||
|
|
||||||
// Restore the correct accounts first:
|
// Restore the correct accounts first:
|
||||||
return this.keyringController.restoreKeyring(serialized)
|
return this.keyringController.restoreKeyring(serialized)
|
||||||
.then(keyring => keyring.getAccounts())
|
.then(() => result)
|
||||||
.then((accounts) => {
|
|
||||||
this.configManager.setSelectedAccount(accounts[0])
|
|
||||||
return result
|
|
||||||
})
|
|
||||||
|
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user