obj syntax

This commit is contained in:
Mario Colque 2014-04-28 11:32:02 -03:00
parent f0911caf63
commit 1168bf82b8
1 changed files with 3 additions and 3 deletions

View File

@ -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;