From 63210ba277a293ca3acf4b33cfb8bbcc115f9093 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 15 May 2014 00:01:16 -0300 Subject: [PATCH] fix in version checking --- js/models/core/WalletFactory.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/models/core/WalletFactory.js b/js/models/core/WalletFactory.js index 80177dc8a..24a69bfed 100644 --- a/js/models/core/WalletFactory.js +++ b/js/models/core/WalletFactory.js @@ -154,13 +154,12 @@ WalletFactory.prototype.open = function(walletId, opts) { this.storage._setPassphrase(opts.passphrase); var w = this.read(walletId); - this._checkVersion(w.version); if (w) { + this._checkVersion(w.version); w.store(); } - return w; };