MegaETH's fork of Foundry, pinned at v1.3.0.
Run forge test and forge coverage with MegaETH EVM semantics (gas forwarding, SALT gas metering, system contracts) via the --megaeth flag:
forge test --megaeth -vvv
forge coverage --megaeth --report lcovUnsupported combinations (rejected with a clear error rather than silently degrading):
--megaeth --isolate/ inlineisolate = true— isolation mode not implemented.--megaeth --fork-url <URL>— fork-aware external environment (Oracle / SALT bucket) not implemented.
Cheatcodes (vm.prank, vm.deal, vm.expectRevert, etc.) are silently skipped under --megaeth. Use pure Solidity assertions (require).
See testdata/megaeth/ for gas-divergence examples and cross-validation harness.
--megaeth is backed by the mega-evm library. To detect library-level drift:
crates/forge/tests/cli/megaeth.rsholds E2E tests, including amegaeth_live_cross_validatetest that installs the upstreammega-evmebinary from crates.io and compares outputs byte-for-byte..github/workflows/megaeth-live-validate.ymlruns this cross-validation daily and on any PR touching MegaETH integration code.
| Crate | Version |
|---|---|
| revm | 27.0.3 |
| op-revm | 8.0.3 |
| alloy-evm | 0.15.0 |
| alloy | 1.0.23 |
| mega-evm | 1.5.1 |
- Base version: foundry-rs/foundry v1.3.0
- Upstream repo: foundry-rs/foundry
Licensed under either of Apache License, Version 2.0 or MIT License at your option.