aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-12-22 09:30:10 +0800
committerDan Finlay <dan@danfinlay.com>2016-12-22 09:30:10 +0800
commit0df656850de606b82b4299fffdc812f45a252b69 (patch)
treea38967175f1db0ec61ca3be86825606d369e44c6 /app
parentebeaf3b3d6cf79e2e0f251b9b2da765f0fe6d0e1 (diff)
downloadtangerine-wallet-browser-0df656850de606b82b4299fffdc812f45a252b69.tar
tangerine-wallet-browser-0df656850de606b82b4299fffdc812f45a252b69.tar.gz
tangerine-wallet-browser-0df656850de606b82b4299fffdc812f45a252b69.tar.bz2
tangerine-wallet-browser-0df656850de606b82b4299fffdc812f45a252b69.tar.lz
tangerine-wallet-browser-0df656850de606b82b4299fffdc812f45a252b69.tar.xz
tangerine-wallet-browser-0df656850de606b82b4299fffdc812f45a252b69.tar.zst
tangerine-wallet-browser-0df656850de606b82b4299fffdc812f45a252b69.zip
Linted
Diffstat (limited to 'app')
-rw-r--r--app/scripts/metamask-controller.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 493ee661a..2dac61a04 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -457,7 +457,7 @@ module.exports = class MetamaskController {
.then((result) => {
this.keyringController.password = password
- const { serialized, lostAccounts } = result
+ const { serialized } = result
// Restore the correct accounts first:
return this.keyringController.restoreKeyring(serialized)
@@ -470,7 +470,7 @@ module.exports = class MetamaskController {
}).then((result) => {
// Now we restore any lost accounts:
- const { serialized, lostAccounts } = result
+ const { lostAccounts } = result
if (result && lostAccounts) {
this.configManager.setLostAccounts(lostAccounts.map((acct) => acct.address))
return this.importLostAccounts(result)
@@ -489,8 +489,7 @@ module.exports = class MetamaskController {
// @Object with key lostAccounts: @Array accounts <{ address, privateKey }>
// Uses the array's private keys to create a new Simple Key Pair keychain
// and add it to the keyring controller.
- importLostAccounts (result) {
- const { serialized, lostAccounts } = result
+ importLostAccounts ({ lostAccounts }) {
const privKeys = lostAccounts.map(acct => acct.privateKey)
return this.keyringController.restoreKeyring({
type: 'Simple Key Pair',