Skip to content

Commit 5c90ad0

Browse files
AztecBotspalladino
andauthored
chore: Accumulated backports to v2 (#18020)
This PR accumulates backport commits throughout the day and will be auto-merged overnight. Latest backport: #18009 - fix: Do not verify contracts if not deployed in that run 🤖 This PR is managed automatically by the backport workflow. Co-authored-by: Santiago Palladino <[email protected]>
1 parent 698a112 commit 5c90ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spartan/scripts/deploy_network.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ EOF
280280
tf_run "${DEPLOY_ROLLUP_CONTRACTS_DIR}" "${DESTROY_ROLLUP_CONTRACTS}" "${CREATE_ROLLUP_CONTRACTS}"
281281
log "Deployed rollup contracts"
282282

283-
if [[ "${VERIFY_CONTRACTS:-}" == "true" ]]; then
283+
if [[ "${VERIFY_CONTRACTS:-}" == "true" && "${CREATE_ROLLUP_CONTRACTS}" == "true" ]]; then
284284
terraform -chdir="${DEPLOY_ROLLUP_CONTRACTS_DIR}" output -raw verification_json_b64 | base64 -d > $HOME/l1-verify.json
285285
${REPO_ROOT}/l1-contracts/scripts/verify-from-json.sh $HOME/l1-verify.json --api-key $ETHERSCAN_API_KEY
286286
fi

0 commit comments

Comments
 (0)