matter-labs / foundry-zksync

Fork of Foundry tailored for zkSync environment
Apache License 2.0
302 stars 130 forks source link

The coverage uses EVM instead of zkEVM in zkSync environment #576

Open zZoMROT opened 2 months ago

zZoMROT commented 2 months ago

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 regular EVM instead of zkEVM, causing incorrect behavior of contracts and tests.

Steps to Reproduce:

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

dutterbutter commented 2 months ago

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!