Skip to content

Commit

Permalink
Change timeskip constant to 0b111111111111111
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorized committed Jun 15, 2022
1 parent 1a7169e commit ec58a12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/ERC721A.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion test/extensions/ERC721ABurnable.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec58a12

Please sign in to comment.