aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/config-manager.js6
-rw-r--r--app/scripts/lib/idStore.js3
-rw-r--r--app/scripts/metamask-controller.js2
3 files changed, 1 insertions, 10 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index 0af82c89c..caaae8a75 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -149,12 +149,6 @@ ConfigManager.prototype.getCurrentRpcAddress = function () {
}
}
-ConfigManager.prototype.clearWallet = function () {
- var data = this.getConfig()
- delete data.wallet
- this.setData(data)
-}
-
ConfigManager.prototype.setData = function (data) {
this.migrator.saveData(data)
}
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index f705c07a7..cbc8c1e48 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -43,9 +43,6 @@ function IdentityStore (opts = {}) {
IdentityStore.prototype.createNewVault = function (password, entropy, cb) {
delete this._keyStore
- if (this.configManager) {
- this.configManager.clearWallet()
- }
this._createIdmgmt(password, null, entropy, (err) => {
if (err) return cb(err)
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 398086274..470591323 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -195,7 +195,7 @@ module.exports = class MetamaskController {
if (!state.isUnlocked) {
this.opts.unlockAccountMessage()
} else {
- this.addUnconfirmedMsg(msgParams, cb)
+ this.addUnconfirmedMessage(msgParams, cb)
}
}