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 <noreply@anthropic.com>
This commit is contained in:
parent
3a17404529
commit
73a80ead0b
2 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ wait_for_rpc() {
|
||||||
run_forge_script() {
|
run_forge_script() {
|
||||||
bootstrap_log "Deploying contracts to fork"
|
bootstrap_log "Deploying contracts to fork"
|
||||||
pushd "$ONCHAIN_DIR" >/dev/null
|
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
|
popd >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,7 @@ else
|
||||||
info "No OPTIMIZER_PROXY set — deploying fresh local stack via DeployLocal.sol"
|
info "No OPTIMIZER_PROXY set — deploying fresh local stack via DeployLocal.sol"
|
||||||
(
|
(
|
||||||
cd "$ONCHAIN_DIR"
|
cd "$ONCHAIN_DIR"
|
||||||
forge script script/DeployLocal.sol \
|
forge script script/DeployLocal.sol --tc DeployLocal \
|
||||||
--rpc-url "$RPC_URL" \
|
--rpc-url "$RPC_URL" \
|
||||||
--broadcast 2>&1 | tee /tmp/deploy-local-output.txt
|
--broadcast 2>&1 | tee /tmp/deploy-local-output.txt
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue