update to use pkr.networkName

This commit is contained in:
Matias Alejo Garcia 2014-06-09 18:01:15 -03:00
commit 8e8bf1fb84
4 changed files with 14 additions and 8 deletions

View file

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