* Save config in localStorage
* Show forced networkName in settings Page
This commit is contained in:
Gustavo Maximiliano Cortez 2014-07-08 18:53:02 -03:00
commit 4d160a4ee7
3 changed files with 11 additions and 7 deletions

View file

@ -34,9 +34,9 @@ function Wallet(opts) {
throw new Error('missing required option for Wallet: ' + k);
self[k] = opts[k];
});
if (copayConfig.forceNetwork && opts.networkName !== copayConfig.networkName)
if (copayConfig.forceNetwork && this.getNetworkName() !== copayConfig.networkName)
throw new Error('Network forced to '+copayConfig.networkName+
' and tried to create a Wallet with network '+opts.networkName);
' and tried to create a Wallet with network '+ this.getNetworkName());
this.log('creating ' + opts.requiredCopayers + ' of ' + opts.totalCopayers + ' wallet');