From ec58a129fe6d6ee9b25c3eb9dc4b47c4d86214be Mon Sep 17 00:00:00 2001 From: Vectorized Date: Wed, 15 Jun 2022 01:03:35 +0000 Subject: [PATCH] Change timeskip constant to 0b111111111111111 --- test/ERC721A.test.js | 4 ++-- test/extensions/ERC721ABurnable.test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ERC721A.test.js b/test/ERC721A.test.js index ac239482f..2f797129b 100644 --- a/test/ERC721A.test.js +++ b/test/ERC721A.test.js @@ -297,7 +297,7 @@ const createTestSuite = ({ contract, constructorArgs }) => const ownershipBefore = await this.erc721a.getOwnershipAt(this.tokenId); this.timestampBefore = parseInt(ownershipBefore.startTimestamp); - this.timestampToMine = (await getBlockTimestamp()) + 12345; + this.timestampToMine = (await getBlockTimestamp()) + 32767; await mineBlockTimestamp(this.timestampToMine); this.timestampMined = await getBlockTimestamp(); @@ -501,7 +501,7 @@ const createTestSuite = ({ contract, constructorArgs }) => this.balanceBefore = (await this.erc721a.balanceOf(this.minter.address)).toNumber(); - this.timestampToMine = (await getBlockTimestamp()) + 12345; + this.timestampToMine = (await getBlockTimestamp()) + 32767; await mineBlockTimestamp(this.timestampToMine); this.timestampMined = await getBlockTimestamp(); diff --git a/test/extensions/ERC721ABurnable.test.js b/test/extensions/ERC721ABurnable.test.js index 41c11db99..408da8871 100644 --- a/test/extensions/ERC721ABurnable.test.js +++ b/test/extensions/ERC721ABurnable.test.js @@ -132,7 +132,7 @@ const createTestSuite = ({ contract, constructorArgs }) => const tokenIdToBurn = this.burnedTokenId + 1; const ownershipBefore = await this.erc721aBurnable.getOwnershipAt(tokenIdToBurn); const timestampBefore = parseInt(ownershipBefore.startTimestamp); - const timestampToMine = (await getBlockTimestamp()) + 12345; + const timestampToMine = (await getBlockTimestamp()) + 32767; await mineBlockTimestamp(timestampToMine); const timestampMined = await getBlockTimestamp(); await this.erc721aBurnable.connect(this.addr1).burn(tokenIdToBurn);