contracts: fix test by increasing block timestamp

Hardhat now has the "allowBlocksWithSameTimestamp"
property set, which made the test fail. Fixed by
explicitly increasing the timestamp in the test.
This commit is contained in:
Mark Spanbroek 2025-03-17 16:23:14 +01:00
parent af6f7bb825
commit 46ca467449
No known key found for this signature in database
GPG Key ID: FBE3E9548D427C00

View File

@ -458,6 +458,8 @@ ethersuite "On-Chain Market":
let (_, fromTime) = await ethProvider.blockNumberAndTimestamp(BlockTag.latest)
await ethProvider.advanceTime(1.u256)
await market.reserveSlot(request.id, 1.uint64)
await market.reserveSlot(request.id, 2.uint64)
await market.fillSlot(request.id, 1.uint64, proof, request.ask.collateralPerSlot)