update to use pkr.networkName
This commit is contained in:
parent
60ed55b564
commit
8e8bf1fb84
4 changed files with 14 additions and 8 deletions
|
|
@ -115,7 +115,6 @@ WalletFactory.prototype.create = function(opts) {
|
|||
|
||||
opts.spendUnconfirmed = opts.spendUnconfirmed || this.walletDefaults.spendUnconfirmed;
|
||||
opts.reconnectDelay = opts.reconnectDelay || this.walletDefaults.reconnectDelay;
|
||||
opts.networkName = opts.networkName || this.networkName;
|
||||
opts.requiredCopayers = requiredCopayers;
|
||||
opts.totalCopayers = totalCopayers;
|
||||
opts.version = opts.version || this.version;
|
||||
|
|
@ -163,7 +162,7 @@ WalletFactory.prototype.open = function(walletId, opts) {
|
|||
var w = this.read(walletId);
|
||||
if (w) {
|
||||
this._checkVersion(w.version);
|
||||
this._checkNetwork(w.networkName);
|
||||
this._checkNetwork(w.getNetworkName());
|
||||
w.store();
|
||||
}
|
||||
return w;
|
||||
|
|
@ -188,8 +187,7 @@ WalletFactory.prototype.decodeSecret = function(secret) {
|
|||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
WalletFactory.prototype.joinCreateSession = function(secret, nickname, passphrase, cb) {
|
||||
var self = this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue