obj syntax
This commit is contained in:
parent
f0911caf63
commit
1168bf82b8
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue