You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `deploy-rollup-contracts` terraform module would always try to
verify contracts, even on chains not supported by Etherscan (e.g. when
deploying to a private devnet). This PR makes it opt-in (default false)
and passes through the `VERIFY_CONTRACTS` env var
Copy file name to clipboardExpand all lines: spartan/scripts/deploy_network.sh
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -272,6 +272,10 @@ fi
272
272
# Deploy rollup contracts
273
273
# -------------------------------
274
274
275
+
if [[ "${VERIFY_CONTRACTS:-}"=="true"&&"${ETHEREUM_CHAIN_ID}"=="1337" ]];then
276
+
die "Cannot verify contracts deployed to eth-devnet"
277
+
fi
278
+
275
279
if [[ "${VERIFY_CONTRACTS:-}"=="true"&&"${CREATE_ROLLUP_CONTRACTS}"=="true" ]];then
276
280
if [ -z"$ETHERSCAN_API_KEY" ];then
277
281
echo"Error: ETHERSCAN_API_KEY is not set, but VERIFY_CONTRACTS=true. Cannot verify contracts without Etherscan API key (i.e. we need API access to the verification service)."
@@ -329,6 +333,7 @@ NETWORK = ${NETWORK_TF}
329
333
JOB_NAME = "deploy-rollup-contracts"
330
334
JOB_BACKOFF_LIMIT = 3
331
335
JOB_TTL_SECONDS_AFTER_FINISHED = 3600
336
+
VERIFY_CONTRACTS = ${VERIFY_CONTRACTS:-false}
332
337
EOF
333
338
334
339
# Check terraform state for existing contract addresses
0 commit comments