aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2017-02-02 05:25:36 +0800
committerFrankie <frankie.diamond@gmail.com>2017-02-02 05:25:36 +0800
commita96f892788d715f7fa8995f2b6bd59f42116385c (patch)
treeb441694304281072343be28d7f943348d74f6b22 /app
parent54b1339f6a2a8a66a01ac224c6dbb569911cfc9a (diff)
downloadtangerine-wallet-browser-a96f892788d715f7fa8995f2b6bd59f42116385c.tar
tangerine-wallet-browser-a96f892788d715f7fa8995f2b6bd59f42116385c.tar.gz
tangerine-wallet-browser-a96f892788d715f7fa8995f2b6bd59f42116385c.tar.bz2
tangerine-wallet-browser-a96f892788d715f7fa8995f2b6bd59f42116385c.tar.lz
tangerine-wallet-browser-a96f892788d715f7fa8995f2b6bd59f42116385c.tar.xz
tangerine-wallet-browser-a96f892788d715f7fa8995f2b6bd59f42116385c.tar.zst
tangerine-wallet-browser-a96f892788d715f7fa8995f2b6bd59f42116385c.zip
Fix messy merge
Diffstat (limited to 'app')
-rw-r--r--app/scripts/keyring-controller.js16
1 files changed, 2 insertions, 14 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index 12e3d2844..e2752831a 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -37,7 +37,6 @@ class KeyringController extends EventEmitter {
this.ethStore = opts.ethStore
this.encryptor = encryptor
this.keyrings = []
- this.identities = {} // Essentially a name hash
this.getNetwork = opts.getNetwork
}
@@ -144,17 +143,6 @@ class KeyringController extends EventEmitter {
.then(this.fullUpdate.bind(this))
}
- // ClearSeedWordCache
- //
- // returns Promise( @string currentSelectedAccount )
- //
- // Removes the current vault's seed words from the UI's state tree,
- // ensuring they are only ever available in the background process.
- clearSeedWordCache () {
- this.configManager.setSeedWords(null)
- return Promise.resolve(this.configManager.getSelectedAccount())
- }
-
// Set Locked
// returns Promise( @object state )
//
@@ -206,8 +194,8 @@ class KeyringController extends EventEmitter {
this.keyrings.push(keyring)
return this.setupAccounts(accounts)
})
- .then(() => { return this.password })
- .then(this.persistAllKeyrings.bind(this))
+ .then(() => this.persistAllKeyrings())
+ .then(() => this.fullUpdate())
.then(() => {
return keyring
})