Skip to content

test(forge): add optimism deployCode coverage - #16453

Merged
mattsse merged 1 commit into
masterfrom
mattsse/op-deploycode-nested-frame-test
Aug 29, 2026
Merged

test(forge): add optimism deployCode coverage#16453
mattsse merged 1 commit into
masterfrom
mattsse/op-deploycode-nested-frame-test

Conversation

@mattsse

@mattsse mattsse commented Aug 29, 2026

Copy link
Copy Markdown
Member

Follow-up to #16419. NestedEvm::run_execution is reachable only through vm.deployCode, and the optimism family was the sole network without coverage of that path — eth, monad, and tempo each exercise it, so a regression confined to the OP instantiation of the shared frame execution (including its map_op_error mapping and OpHandler's deposit-aware last_frame_result override) would ship with CI green.

The test activates the optimism family via config, deploys a contract through vm.deployCode with a constructor argument, and asserts the deployed code is present and callable. It runs in default CI: optimism is a default feature of forge, and the network is selected purely through foundry.toml.

Test-only change, needs L-ignore.

AI-assisted.

Covers the OP EVM's nested-EVM frame execution path, which is only
reachable through vm.deployCode, for the optimism network family.
@github-actions

Copy link
Copy Markdown
Contributor

✅ Changelog exempt

A maintainer marked this pull request as not requiring a changelog entry.

@mattsse
mattsse merged commit 268f442 into master Aug 29, 2026
31 of 33 checks passed
@mattsse
mattsse deleted the mattsse/op-deploycode-nested-frame-test branch August 29, 2026 08:53
@github-project-automation github-project-automation Bot moved this to Done in Foundry Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L-ignore Log: ignore PR in changelog

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant