Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.91 KB

File metadata and controls

47 lines (30 loc) · 1.91 KB

Foundry (MegaETH Fork)

MegaETH's fork of Foundry, pinned at v1.3.0.

MegaETH Mode

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 lcov

Unsupported combinations (rejected with a clear error rather than silently degrading):

  • --megaeth --isolate / inline isolate = 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 ↔ mega-evm consistency

--megaeth is backed by the mega-evm library. To detect library-level drift:

Key Dependencies

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

Upstream

License

Licensed under either of Apache License, Version 2.0 or MIT License at your option.