From 73a80ead0bedc57f2d3496b464fee8d5c0ecc772 Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 12 Mar 2026 23:12:25 +0000 Subject: [PATCH] fix: add --tc DeployLocal to forge script invocations Adding SeedSwapper alongside DeployLocal in the same .sol file caused forge to error "Multiple contracts in the target path" when no --tc flag was specified, silently failing the CI bootstrap step. Add --tc DeployLocal to all forge script invocations of DeployLocal.sol: - scripts/bootstrap-common.sh (CI / local bootstrap) - tools/deploy-optimizer.sh (manual deploy tool) Co-Authored-By: Claude Sonnet 4.6 --- scripts/bootstrap-common.sh | 2 +- tools/deploy-optimizer.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bootstrap-common.sh b/scripts/bootstrap-common.sh index cd8b52b..6d9aeea 100755 --- a/scripts/bootstrap-common.sh +++ b/scripts/bootstrap-common.sh @@ -53,7 +53,7 @@ wait_for_rpc() { run_forge_script() { bootstrap_log "Deploying contracts to fork" pushd "$ONCHAIN_DIR" >/dev/null - forge script script/DeployLocal.sol --fork-url "$ANVIL_RPC" --broadcast >>"$LOG_FILE" 2>&1 + forge script script/DeployLocal.sol --tc DeployLocal --fork-url "$ANVIL_RPC" --broadcast >>"$LOG_FILE" 2>&1 popd >/dev/null } diff --git a/tools/deploy-optimizer.sh b/tools/deploy-optimizer.sh index 95c97ff..bb70adf 100755 --- a/tools/deploy-optimizer.sh +++ b/tools/deploy-optimizer.sh @@ -200,7 +200,7 @@ else info "No OPTIMIZER_PROXY set — deploying fresh local stack via DeployLocal.sol" ( cd "$ONCHAIN_DIR" - forge script script/DeployLocal.sol \ + forge script script/DeployLocal.sol --tc DeployLocal \ --rpc-url "$RPC_URL" \ --broadcast 2>&1 | tee /tmp/deploy-local-output.txt )