Skip to content

tests: Pin anvil to version 1.2.3#6112

Merged
fubhy merged 1 commit intomasterfrom
lutter/pin-anvil
Aug 20, 2025
Merged

tests: Pin anvil to version 1.2.3#6112
fubhy merged 1 commit intomasterfrom
lutter/pin-anvil

Conversation

@lutter
Copy link
Collaborator

@lutter lutter commented Aug 19, 2025

It seems that anvil 1.2.3 is the last version to produce deterministic block hashes reliably. The 'grafted' test really needs deterministic block hashes as they influence the PoI which this test checks.

If this foundry bug gets fixed, we should try again with latest stable foundry.

I spent way too much time trying to work around the nondeterministic block hashes - anything we can do there is way grosser and more brittle than just pinning anvil until upstream is fixed and makes block hashes deterministic.

@lutter lutter requested a review from fubhy August 19, 2025 21:53
It seems that anvil 1.2.3 is the last version to produce deterministic
block hashes reliably. The 'grafted' test really needs deterministic block
hashes as they influence the PoI which this test checks.

If [this foundry bug](foundry-rs/foundry#9570)
gets fixed, we should try again with latest stable foundry.
@fubhy fubhy merged commit 0e0b949 into master Aug 20, 2025
6 checks passed
@fubhy fubhy deleted the lutter/pin-anvil branch August 20, 2025 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants