From d5a8936870e1454822a439b0e5a1db2b3cef09ed Mon Sep 17 00:00:00 2001 From: johba Date: Mon, 23 Mar 2026 00:07:14 +0000 Subject: [PATCH] fix: anvil not validated in tool-check step (#1046) Co-Authored-By: Claude Opus 4.6 (1M context) --- tools/deploy-optimizer.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/deploy-optimizer.sh b/tools/deploy-optimizer.sh index 2a6a3d3..a8ac032 100755 --- a/tools/deploy-optimizer.sh +++ b/tools/deploy-optimizer.sh @@ -107,7 +107,13 @@ for tool in forge cast npx node python3; do fail "$tool not found in PATH" fi done -success "forge, cast, npx, node, python3 are present" + +if ! $LIVE; then + if ! command -v anvil &>/dev/null; then + fail "anvil not found in PATH (required for dry-run mode)" + fi +fi +success "Required tools are present" # --------------------------------------------------------------------------- # Step 1 — Transpile Push3 → Solidity