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
--via-ir introduces quite a few optimizations which can make a lot of things, including sourcemaps, innacurate. What you're seeing is your code being optimized in the logs. You can disable certain optimizations for IR compilation, but in general we recommend running tests without ir. See ethereum/solidity#12533
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
0.2.0 (3e12d88 2023-11-17T00:33:21.440760000Z)
What command(s) is the bug in?
--via-ir
Operating System
macOS (Apple Silicon)
Describe the bug
source code
run without --via-ir
forge test --match-contract CounterTest -vv
The result meets expectations.
run with --via-ir
forge test --match-contract CounterTest -vv --via-ir
The result does not meet expectations.
The text was updated successfully, but these errors were encountered: