aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/keyring-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/keyring-controller.js')
-rw-r--r--app/scripts/keyring-controller.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index b93d4a156..e6a7d95b2 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -132,8 +132,6 @@ module.exports = class KeyringController extends EventEmitter {
.then((encryptedString) => {
this.configManager.setVault(encryptedString)
cb(null, serialized)
- // NORMAL BEHAVIOR:
- // return cb(null, this.getState())
})
.catch((err) => {
cb(err)
@@ -157,6 +155,14 @@ module.exports = class KeyringController extends EventEmitter {
}
}
+ placeSeedWords () {
+ const firstKeyring = this.keyrings[0]
+ const seedWords = firstKeyring.serialize().mnemonic
+ this.configManager.setSeedWords(seedWords)
+ }
+
+
+
submitPassword(password, cb) {
this.loadKey(password)
.then((key) => {