Merge pull request #1400 from cmgustavo/antifeature/forcenetwork

Remove forceNetwork
This commit is contained in:
Matias Alejo Garcia 2014-09-17 05:38:18 -03:00
commit 912c57eee4
4 changed files with 0 additions and 16 deletions

View file

@ -67,9 +67,6 @@ function Wallet(opts) {
preconditions.checkArgument(!_.isUndefined(opts[k]), 'missing required option for Wallet: ' + k);
self[k] = opts[k];
});
preconditions.checkArgument(!copayConfig.forceNetwork || this.getNetworkName() === copayConfig.networkName,
'Network forced to ' + copayConfig.networkName +
' and tried to create a Wallet with network ' + this.getNetworkName());
this.id = opts.id || Wallet.getRandomId();
this.secretNumber = opts.secretNumber || Wallet.getRandomNumber();