fix in version checking
This commit is contained in:
parent
2e99d9a8ea
commit
63210ba277
1 changed files with 1 additions and 2 deletions
|
|
@ -154,13 +154,12 @@ WalletFactory.prototype.open = function(walletId, opts) {
|
||||||
this.storage._setPassphrase(opts.passphrase);
|
this.storage._setPassphrase(opts.passphrase);
|
||||||
|
|
||||||
var w = this.read(walletId);
|
var w = this.read(walletId);
|
||||||
this._checkVersion(w.version);
|
|
||||||
|
|
||||||
|
|
||||||
if (w) {
|
if (w) {
|
||||||
|
this._checkVersion(w.version);
|
||||||
w.store();
|
w.store();
|
||||||
}
|
}
|
||||||
|
|
||||||
return w;
|
return w;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue