Skip to content
Discussion options

You must be logged in to vote

One more thing to check: you are on Forge 1.4.2, and the current stable line is newer now.

So I would try this order:

foundryup
forge clean
forge coverage --report lcov
grep '^SF:' lcov.info | sort

Then try --ir-minimum only as a workaround, not as the final answer.

The Foundry docs warn that --ir-minimum can make coverage less accurate because code gets inlined. So if DSCEngine.sol still disappears after an upgrade, I would treat it as a coverage bug, not as proof that your tests are wrong.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by web3pavlou
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants