Skip to content

Commit af0d57f

Browse files
committed
Add Etherscan verify back in
1 parent 8b95011 commit af0d57f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spartan/scripts/deploy_network.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ EOF
259259
tf_run "${DEPLOY_ROLLUP_CONTRACTS_DIR}" "${DESTROY_ROLLUP_CONTRACTS}" "${CREATE_ROLLUP_CONTRACTS}"
260260
log "Deployed rollup contracts"
261261

262-
# if [[ "${VERIFY_CONTRACTS:-}" == "true" ]]; then
263-
# terraform -chdir="${DEPLOY_ROLLUP_CONTRACTS_DIR}" output -raw verification_json_b64 | base64 -d > $HOME/l1-verify.json
264-
# ${REPO_ROOT}/l1-contracts/scripts/verify-from-json.sh $HOME/l1-verify.json --api-key $ETHERSCAN_API_KEY
265-
# fi
262+
if [[ "${VERIFY_CONTRACTS:-}" == "true" ]]; then
263+
terraform -chdir="${DEPLOY_ROLLUP_CONTRACTS_DIR}" output -raw verification_json_b64 | base64 -d > $HOME/l1-verify.json
264+
${REPO_ROOT}/l1-contracts/scripts/verify-from-json.sh $HOME/l1-verify.json --api-key $ETHERSCAN_API_KEY
265+
fi
266266

267267
REGISTRY_ADDRESS=$(terraform -chdir="${DEPLOY_ROLLUP_CONTRACTS_DIR}" output -raw registry_address)
268268
SLASH_FACTORY_ADDRESS=$(terraform -chdir="${DEPLOY_ROLLUP_CONTRACTS_DIR}" output -raw slash_factory_address)

0 commit comments

Comments
 (0)