From 46ca46744979904002112bd713e3164f8f8aad64 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Mon, 17 Mar 2025 16:23:14 +0100 Subject: [PATCH] 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. --- tests/contracts/testMarket.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/contracts/testMarket.nim b/tests/contracts/testMarket.nim index 6dd5d594..60f43a4c 100644 --- a/tests/contracts/testMarket.nim +++ b/tests/contracts/testMarket.nim @@ -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)