crytic/echidna

Echidna master adds an `--evm-version` tag to the end of crytic-compile

0xicingdeath opened this issue · 2 comments

Describe the issue:

The most recent release of Echidna runs crytic-compile with an --evm-version paris tag which ends up failing on cloudexec runs.

Code example to reproduce the issue:

[2024-01-23 19:10:37.23] Compiling tests/fuzzing/FUZZING_CONTRACT.sol... Done! (0.19834517s)

Dumping error logs...
echidna: Couldn't compile given file
stdout:
stderr:
INFO:CryticCompile:'forge config --json' running
INFO:CryticCompile:'/root/venv/.solc-select/artifacts/solc-0.8.17/solc-0.8.17 --version' running
INFO:CryticCompile:'/root/venv/.solc-select/artifacts/solc-0.8.17/solc-0.8.17 @openzeppelin/=lib/openzeppelin-contracts/ @uniswap/v3-core/=lib/v3-core/ @pendle=lib/pendle-core-v2-public/contracts/ ds-test/=lib/forge-std/lib/ds-test/src/ erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/ forge-std/=lib/forge-std/src/ openzeppelin-contracts/=lib/openzeppelin-contracts/ openzeppelin/=lib/openzeppelin-contracts/contracts/ pendle-core-v2-public/=lib/pendle-core-v2-public/contracts/ v3-core/=lib/v3-core/contracts/ tests/fuzzing/FUZZING_CONTRACT.sol --combined-json abi,ast,bin,bin-runtime,srcmap,srcmap-runtime,userdoc,devdoc,hashes --optimize --optimize-runs 200 --evm-version paris --allow-paths .,/root/tests/fuzzing' running
ERROR:CryticCompile:Invalid solc compilation Invalid option for --evm-version: paris

Version:

Errors with: echidna release

Works with: https://github.com/crytic/echidna/actions/runs/7573348911/artifacts/1178775227

Relevant log output:

No response

I cannot find where that is happening. Any idea @arcz ?

This should be fixed in forge, so it may take an update: run foundryup. Otherwise, the config can be added to the foundry.toml explicitly evm_version = london (substitute latest EVM version available for the given solc version)

xref foundry-rs/foundry#5884