Next block after evm_revert
does not have increased timestamp
#5518
Labels
Milestone
evm_revert
does not have increased timestamp
#5518
Component
Anvil
Have you ensured that all of these are up to date?
What version of Foundry are you on?
anvil 0.1.0 (25d3ce7 2023-08-01T00:20:13.496244391Z)
What command(s) is the bug in?
anvil --prune-history 100 --steps-tracing --silent --port 36655
Operating System
Linux
Describe the bug
It seems that the next block mined after an
evm_revert
JSON-RPC request does not have the timestamp increased. I believe this can be considered a bug since timestamps of blocks mined withoutevm_snapshot
andevm_revert
are always increased by 1.I think this may be the relevant part of the code:
foundry/anvil/src/eth/backend/mem/mod.rs
Lines 625 to 629 in 9a4bb7f
The current behavior is (described in Woke testing framework):
while the expected behavior is
The text was updated successfully, but these errors were encountered: