Browse Source

add createdOn to txHistory

activeAddress
Ivan Socolsky 9 years ago
parent
commit
a420c47ba7
No known key found for this signature in database GPG Key ID: FAECE6A05FAA4F56
  1. 1
      lib/server.js
  2. 1
      test/integration/server.js

1
lib/server.js

@ -2684,6 +2684,7 @@ WalletService.prototype.getTxHistory = function(opts, cb) {
var proposal = indexedProposals[tx.txid];
if (proposal) {
newTx.createdOn = proposal.createdOn;
newTx.proposalId = proposal.id;
newTx.proposalType = proposal.type;
newTx.creatorName = proposal.creatorName;

1
test/integration/server.js

@ -5925,6 +5925,7 @@ describe('Wallet service', function() {
should.exist(txs);
txs.length.should.equal(1);
var tx = txs[0];
tx.createdOn.should.equal(txp.createdOn);
tx.action.should.equal('sent');
tx.amount.should.equal(0.8e8);
tx.message.should.equal('some message');

Loading…
Cancel
Save