Skip to content

Commit 3ca4fd7

Browse files
rg911fboucquez
authored andcommitted
Task/g383 deadline (#384)
1 parent e1885d3 commit 3ca4fd7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/model/transaction/Deadline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class Deadline {
2626
/**
2727
* @type {number}
2828
*/
29-
public static timestampNemesisBlock = 1573426800;
29+
public static timestampNemesisBlock = 1573430400;
3030

3131
/**
3232
* Deadline value

test/model/transaction/Deadline.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,12 @@ describe('Deadline', () => {
5151
expect(deadline.toDTO()[1]).to.be.equal(11);
5252
});
5353

54+
it('make sure epochAdjustment is correct', () => {
55+
const epochAdjustment = new Date(Deadline.timestampNemesisBlock * 1000);
56+
expect(epochAdjustment.getFullYear()).to.be.equal(2019);
57+
expect(epochAdjustment.getMonth() + 1).to.be.equal(11);
58+
expect(epochAdjustment.getDate()).to.be.equal(11);
59+
expect(epochAdjustment.getHours()).to.be.equal(0);
60+
expect(epochAdjustment.getMinutes()).to.be.equal(0);
61+
});
5462
});

0 commit comments

Comments
 (0)