Skip to content

Commit

Permalink
fix(cancelVesting): increased date validTo and more detailed error me…
Browse files Browse the repository at this point in the history
…ssage

BREAKING CHANGE:
  • Loading branch information
aleeusgr committed May 24, 2023
1 parent ee83e60 commit 96dd612
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/helios-vesting-cancel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe("a vesting contract: Cancel transaction", async () => {
const emulatorDate = 1677108984000; // from src/preprod.json
const currentTime = new Date(emulatorDate);
const earlierTime = new Date(currentTime - 5 * 60 * 1000);
const laterTime = new Date(currentTime + 2 * 60 * 60 * 1000);
const laterTime = new Date(currentTime + 2000 * 60 * 60 * 1000);

tx.validFrom(earlierTime);
tx.validTo(laterTime);
Expand All @@ -134,6 +134,9 @@ describe("a vesting contract: Cancel transaction", async () => {
const networkParams = new NetworkParams(JSON.parse(networkParamsFile.toString()));

await tx.finalize(networkParams, ownerAddress, [spareUtxo]);

expect(tx.dump()).toBe()

const txId = await network.submitTx(tx);
network.tick(BigInt(10));

Expand Down

0 comments on commit 96dd612

Please sign in to comment.