Skip to content

fix(anvil): use latest active Tempo hardfork#15706

Merged
mattsse merged 2 commits into
foundry-rs:masterfrom
mattsse:mattsse/chore-bump-tempo
Jul 13, 2026
Merged

fix(anvil): use latest active Tempo hardfork#15706
mattsse merged 2 commits into
foundry-rs:masterfrom
mattsse:mattsse/chore-bump-tempo

Conversation

@mattsse

@mattsse mattsse commented Jul 13, 2026

Copy link
Copy Markdown
Member

Summary

  • update Foundry's Tempo dependencies to the latest pinned revision
  • default local Tempo Anvil chains to the latest active Tempo hardfork
  • exercise automatic hardfork selection in Tempo CI while preserving explicit historical overrides

Context

anvil --network tempo uses local chain ID 31337, which is not present in Tempo's chain-aware activation schedules. The unresolved schedule previously fell back to TempoHardfork::default(), or T0, even though the currently active fork is T7. This disabled hardfork-gated precompile selectors, including the T2+ TIP-403 authorization methods used by ZonePortal deposits.

Tempo CI always supplied --hardfork T7, which masked the default local path. The fallback now reuses Foundry's existing latest_active_tempo_hardfork() resolver, and CI omits the override unless TEMPO_HARDFORK is explicitly set. Future Tempo activations therefore flow through the shared schedule without another Anvil-specific default update.

Impact

Developers can run anvil --network tempo without an additional hardfork flag and get the latest valid Tempo behavior. Explicit hardfork selection remains available for historical compatibility testing.

@mablr mablr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

mablr
mablr previously approved these changes Jul 13, 2026
figtracer
figtracer previously approved these changes Jul 13, 2026
grandizzy
grandizzy previously approved these changes Jul 13, 2026

@grandizzy grandizzy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

Defaulting local Tempo chains to T7 exposed test gas caps and T0-specific assertions. Give current-fork transactions sufficient headroom, pin historical cases explicitly, and avoid zero-address AMM seeding where current forks reject it.
@mattsse mattsse dismissed stale reviews from grandizzy, figtracer, and mablr via 677398d July 13, 2026 10:39
@mattsse mattsse merged commit 2ad5a7e into foundry-rs:master Jul 13, 2026
20 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Foundry Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants