From b83263b40c5c65dec0a77e9460a669a8b27bcc28 Mon Sep 17 00:00:00 2001 From: Daniel Kraft Date: Fri, 25 Oct 2024 08:03:09 +0200 Subject: [PATCH] Do not increase mockTime when mining EVM block. Anvil now (https://github.com/foundry-rs/foundry/pull/9160) supports blocks with constant timestamp, so there is no need to explicitly bump the mock time when generating a new block (it can remain the same). This simplifies testing logic potentially, as tests do not need to expect increasing timestamps after setting a mock time. --- xayax/eth.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/xayax/eth.py b/xayax/eth.py index 58bb264..7474fdc 100644 --- a/xayax/eth.py +++ b/xayax/eth.py @@ -281,9 +281,6 @@ def mine (self): self.rpc.evm_mine () else: self.rpc.evm_mine (self.mockTime) - # We need to bump the mock time at least by one second - # so the next block can be mined, too. - self.mockTime += 1 def deployContract (self, addr, data, *args, **kwargs): """