Skip to content

[tooling] anvil version not pinned — fork behavior drifts across foundry releases #259

@obchain

Description

@obchain

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    layer:devopsCI / deploy / infra / telemetrypr-reviewFindings from PR review processpriority:p2-polishNice-to-have / polishstatus:readyScoped and ready to pick uptype:choreMaintenance, config, tooling

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions