Refs #52
Files: scripts/anvil_fork.sh, foundry.toml
Problem
Script calls anvil on $PATH. Foundry release cadence weekly, sometimes breaking (fork protocol changes, EVM semantics changes). Without version pin, PR behavior cannot be reproduced on a clone 6 months later.
Fix
Pin foundry version via foundryup or explicit version check in script:
REQUIRED_FOUNDRY_VERSION="0.2.0-stable"
actual=$(forge --version | head -n1)
[[ "$actual" == *"$REQUIRED_FOUNDRY_VERSION"* ]] || { echo "Foundry version mismatch: expected $REQUIRED_FOUNDRY_VERSION, got $actual"; exit 1; }
Document in README: 'Tested against foundry X.Y.Z — run foundryup -v X.Y.Z to match'.
Refs #52
Files: scripts/anvil_fork.sh, foundry.toml
Problem
Script calls
anvilon $PATH. Foundry release cadence weekly, sometimes breaking (fork protocol changes, EVM semantics changes). Without version pin, PR behavior cannot be reproduced on a clone 6 months later.Fix
Pin foundry version via foundryup or explicit version check in script:
Document in README: 'Tested against foundry X.Y.Z — run
foundryup -v X.Y.Zto match'.