fix in version checking

This commit is contained in:
Matias Alejo Garcia 2014-05-15 00:01:16 -03:00
parent 2e99d9a8ea
commit 63210ba277
1 changed files with 1 additions and 2 deletions

View File

@ -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;
};