diff --git a/js/models/core/TxProposals.js b/js/models/core/TxProposals.js index e056d9e8f..26935583b 100644 --- a/js/models/core/TxProposals.js +++ b/js/models/core/TxProposals.js @@ -29,6 +29,11 @@ TxProposal.prototype.toObj = function() { return o; }; + +TxProposal.prototype.setSent = function() { + this.sentTs = Date.now();; +}; + TxProposal.fromObj = function(o) { var t = new TxProposal(o); var b = new Builder.fromObj(o.builderObj); @@ -36,10 +41,6 @@ TxProposal.fromObj = function(o) { return t; }; -TxProposal.setSent = function() { - this.sentTs = Date.now();; -}; - TxProposal.getSentTs = function() { return this.sentTs; }; diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 45e62301b..e368850c3 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -348,8 +348,14 @@ Wallet.prototype.sendTx = function(ntxid) { var self = this; this.blockchain.sendRawTransaction(txHex, function(txid) { self.log('BITCOND txid:',txid); //TODO + +console.log('[Wallet.js.351]'); //TODO if (txid) { +console.log('[Wallet.js.354]',self); //TODO self.txProposals.setSent(ntxid); + +console.log('[Wallet.js.353]', self.txProposals); //TODO + self.sendTxProposals(); self.store(); }