Skip to content

feat(anvil): fix Tempo transaction replay and tracing#14039

Merged
zerosnacks merged 1 commit intofoundry-rs:masterfrom
stevencartavia:tempo-replay-trace
Apr 1, 2026
Merged

feat(anvil): fix Tempo transaction replay and tracing#14039
zerosnacks merged 1 commit intofoundry-rs:masterfrom
stevencartavia:tempo-replay-trace

Conversation

@stevencartavia
Copy link
Copy Markdown
Contributor

Fix panic when replaying/tracing Tempo transactions in anvil.

Three call sites (inspect_tx, replay_block_transactions_with_inspector, replay_tx_with_inspector) convert a FoundryTxEnvelope to OpTransaction<TxEnv>, which hits unreachable!() for Tempo variants.

  • Adds transact_tempo_with_inspector_ref for native Tempo EVM execution with full AA field preservation
  • Adds transact_envelope_with_inspector_ref helper that branches on tx type to call the correct EVM path
  • Updates transact_with_inspector_ref return type from ResultAndState<OpHaltReason> to ResultAndState<HaltReason>

@zerosnacks zerosnacks merged commit 02daf51 into foundry-rs:master Apr 1, 2026
16 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Apr 1, 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.

2 participants