it('POC', async function () { // Auction start: Now - 200 // Auction end: Now + 100 const instance = await getInstance({ auctionLengthSeconds: 300, initialPeriodStartTime: (await time.latest()) + 50 , licensePeriod: 1000, }); const licenseMock = await ethers.getContractAt( 'NativeStewardLicenseMock', instance.address, ); await licenseMock.connect(owner).addTokenToCollection(ethers.constants.AddressZero, "", (await time.latest()) - 200); console.log( await licenseMock.maxTokenCount() ); const bidAmount = ethers.utils.parseEther('1.1'); const feeAmount = await instance.calculateFeeFromBid(bidAmount); const collateralAmount = feeAmount; await instance .connect(owner) .placeBid(10, bidAmount, { value: collateralAmount }); await licenseMock.connect(owner).mintToken(bidder1.address, 10); await time.increase(101); await instance.connect(owner).closeAuction(10); expect(await licenseMock.ownerOf(10)).to.be.equal(owner.address); });