mirror of https://github.com/BTCPrivate/copay.git
obj syntax
This commit is contained in:
parent
f0911caf63
commit
1168bf82b8
|
@ -53,9 +53,9 @@ WalletFactory.prototype._checkRead = function(walletId) {
|
|||
|
||||
WalletFactory.prototype.fromObj = function(obj) {
|
||||
var opts = obj.opts;
|
||||
opts['publicKeyRing'] = new PublicKeyRing.fromObj(obj.publicKeyRing);
|
||||
opts['txProposals'] = new TxProposals.fromObj(obj.txProposals);
|
||||
opts['privateKey'] = new PrivateKey.fromObj(obj.privateKey);
|
||||
opts.publicKeyRing = new PublicKeyRing.fromObj(obj.publicKeyRing);
|
||||
opts.txProposals = new TxProposals.fromObj(obj.txProposals);
|
||||
opts.privateKey = new PrivateKey.fromObj(obj.privateKey);
|
||||
opts.storage = this.storage;
|
||||
opts.network = this.network;
|
||||
opts.blockchain = this.blockchain;
|
||||
|
|
Loading…
Reference in New Issue