diff options
Fix account nicknaming bug
When nicknaming, we weren't normalizing the input, and so we were retrieving with differently formatted addresses than we were persisting.
Diffstat (limited to 'app/scripts/keyring-controller.js')
-rw-r--r-- | app/scripts/keyring-controller.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js index 3bc9561e2..06c1e2761 100644 --- a/app/scripts/keyring-controller.js +++ b/app/scripts/keyring-controller.js @@ -250,7 +250,7 @@ module.exports = class KeyringController extends EventEmitter { address, name, } - this.saveAccountLabel(address, name) + return this.saveAccountLabel(address, name) } saveAccountLabel (account, label, cb) { @@ -259,6 +259,8 @@ module.exports = class KeyringController extends EventEmitter { configManager.setNicknameForWallet(address, label) if (cb) { cb(null, label) + } else { + return label } } @@ -270,6 +272,7 @@ module.exports = class KeyringController extends EventEmitter { data: k.serialize(), } }) + return this.encryptor.encryptWithKey(this.key, serialized) .then((encryptedString) => { this.configManager.setVault(encryptedString) |