Open zZoMROT opened 2 months ago
Forge
forge 0.0.2 (bd4ac3b 2024-09-15T00:28:26.590209390Z)
forge coverage --zksync
None
When running forge coverage with the --zksync flag, it uses the regular EVM instead of zkEVM, causing incorrect behavior of contracts and tests.
forge coverage
--zksync
EVM
zkEVM
yarn test:zksync -vvvv
yarn coverage:zksync -vvvv
Expected Behavior: forge coverage should use zkEVM when the --zksync flag is specified, similar to the forge test behavior.
Demo Repository: foundry-zksync-coverage-demo
forge coverage is not fully supported at this time so this is expected. We intend to add this soon. Will leave this open until then. Thanks!
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.0.2 (bd4ac3b 2024-09-15T00:28:26.590209390Z)
What command(s) is the bug in?
forge coverage --zksync
Operating System
None
Describe the bug
Issue:
When running
forge coverage
with the--zksync
flag, it uses the regularEVM
instead ofzkEVM
, causing incorrect behavior of contracts and tests.Steps to Reproduce:
yarn test:zksync -vvvv
— the logs show zkevm is used as expected.yarn coverage:zksync -vvvv
— the logs show evm is used instead of zkevm.Expected Behavior: forge coverage should use
zkEVM
when the--zksync
flag is specified, similar to the forge test behavior.Demo Repository: foundry-zksync-coverage-demo