pcaversaccio / createx

Factory smart contract to make easier and safer usage of the `CREATE` and `CREATE2` EVM opcodes as well as of `CREATE3`-based (i.e. without an initcode factor) contract creations.
https://createx.rocks
GNU Affero General Public License v3.0
341 stars 26 forks source link

♻️ Adjust `invariant` Test Configuration #117

Closed pcaversaccio closed 5 months ago

pcaversaccio commented 5 months ago

🕓 Changelog

Foundry changed the default value for the invariant depth parameter to 500 here: https://github.com/foundry-rs/foundry/pull/7957. Given the current setup, this would lead to overall 2,500,000 executed calls (= 5,000 runs 500 depth), which would cause the CI to timeout (see https://github.com/pcaversaccio/createx/actions/runs/9304062368/job/25622386435 as an example). We patch this by setting the new invariant runs parameter to 500 and the depth parameter to 500, leading to overall (only) 250,000 (= 500 500) calls.

🐶 Cute Animal Picture

image

github-actions[bot] commented 5 months ago

`CreateX` Test Coverage Report

Coverage after merging refactor/invariant-tests-config into main will be
100.00%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   CreateX.sol100%100%100%100%