mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Linted
This commit is contained in:
parent
ebeaf3b3d6
commit
0df656850d
@ -457,7 +457,7 @@ module.exports = class MetamaskController {
|
|||||||
.then((result) => {
|
.then((result) => {
|
||||||
|
|
||||||
this.keyringController.password = password
|
this.keyringController.password = password
|
||||||
const { serialized, lostAccounts } = result
|
const { serialized } = result
|
||||||
|
|
||||||
// Restore the correct accounts first:
|
// Restore the correct accounts first:
|
||||||
return this.keyringController.restoreKeyring(serialized)
|
return this.keyringController.restoreKeyring(serialized)
|
||||||
@ -470,7 +470,7 @@ module.exports = class MetamaskController {
|
|||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
|
|
||||||
// Now we restore any lost accounts:
|
// Now we restore any lost accounts:
|
||||||
const { serialized, lostAccounts } = result
|
const { lostAccounts } = result
|
||||||
if (result && lostAccounts) {
|
if (result && lostAccounts) {
|
||||||
this.configManager.setLostAccounts(lostAccounts.map((acct) => acct.address))
|
this.configManager.setLostAccounts(lostAccounts.map((acct) => acct.address))
|
||||||
return this.importLostAccounts(result)
|
return this.importLostAccounts(result)
|
||||||
@ -489,8 +489,7 @@ module.exports = class MetamaskController {
|
|||||||
// @Object with key lostAccounts: @Array accounts <{ address, privateKey }>
|
// @Object with key lostAccounts: @Array accounts <{ address, privateKey }>
|
||||||
// Uses the array's private keys to create a new Simple Key Pair keychain
|
// Uses the array's private keys to create a new Simple Key Pair keychain
|
||||||
// and add it to the keyring controller.
|
// and add it to the keyring controller.
|
||||||
importLostAccounts (result) {
|
importLostAccounts ({ lostAccounts }) {
|
||||||
const { serialized, lostAccounts } = result
|
|
||||||
const privKeys = lostAccounts.map(acct => acct.privateKey)
|
const privKeys = lostAccounts.map(acct => acct.privateKey)
|
||||||
return this.keyringController.restoreKeyring({
|
return this.keyringController.restoreKeyring({
|
||||||
type: 'Simple Key Pair',
|
type: 'Simple Key Pair',
|
||||||
|
Loading…
Reference in New Issue
Block a user