rebased!
This commit is contained in:
parent
5cf4fe0b66
commit
64072f83bc
1 changed files with 24 additions and 30 deletions
|
|
@ -53,7 +53,6 @@ function WalletFactory(config, version, pluginManager) {
|
|||
|
||||
this.storage = new this.Storage(storageOpts);
|
||||
|
||||
<<<<<<< HEAD
|
||||
this.networks = {
|
||||
'livenet': new this.Network(config.network.livenet),
|
||||
'testnet': new this.Network(config.network.testnet),
|
||||
|
|
@ -63,11 +62,7 @@ function WalletFactory(config, version, pluginManager) {
|
|||
'testnet': new this.Blockchain(config.network.testnet),
|
||||
};
|
||||
|
||||
this.walletDefaults = config.wallet;
|
||||
=======
|
||||
this.networkName = config.networkName;
|
||||
this.walletDefaults = config.wallet || {};
|
||||
>>>>>>> ALL TEST PASSING!!!
|
||||
this.walletDefaults = config.walle || {};
|
||||
this.version = version;
|
||||
};
|
||||
|
||||
|
|
@ -100,7 +95,7 @@ WalletFactory.prototype.fromObj = function(obj, skipFields) {
|
|||
obj.opts.reconnectDelay = this.walletDefaults.reconnectDelay;
|
||||
|
||||
// this is only used if private key or public key ring is skipped
|
||||
obj.opts.networkName = this.networkName;
|
||||
obj.opts.networkName = networkName;
|
||||
|
||||
skipFields = skipFields || [];
|
||||
skipFields.forEach(function(k) {
|
||||
|
|
@ -439,10 +434,9 @@ WalletFactory.prototype.joinCreateSession = function(opts, cb) {
|
|||
}
|
||||
return cb(err, w);
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = WalletFactory;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue