You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since precompiles are implemented in revm, they're intercepted from forge test calls before reaching the network.
For L2s that don't implement certain precompiles (for example, Polygon zkEVM only implements ecRecover and identity - most other ZK rollups are similarly limited), this can lead to inaccurate behavior, where fork tests that call to precompiles will succeed when they should fail.
This is known. We currently only support mainnet precompiles which are implemented in Revm, and there's no way to configure this in Foundry. See also #748.
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (fd90b1d 2023-11-06T20:43:26.902623000Z)
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
Describe the bug
Since precompiles are implemented in revm, they're intercepted from
forge test
calls before reaching the network.For L2s that don't implement certain precompiles (for example, Polygon zkEVM only implements ecRecover and identity - most other ZK rollups are similarly limited), this can lead to inaccurate behavior, where fork tests that call to precompiles will succeed when they should fail.
To reproduce:
Compare this to the
cast call
, which presumable pings the actual RPC node for a response:The text was updated successfully, but these errors were encountered: