Skip to content

Commit

Permalink
fix: use verify option only when the etherscan key exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Dec 11, 2024
1 parent 7c5e72c commit 667d6d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion contracts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ KEYSTORE_FILENAME=${KEYSTORE_FILENAME:-*}
KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD:-"pwd"}
CONTRACT_REPO_ROOT_PATH=${CONTRACT_REPO_ROOT_PATH:-$PWD}

if [ -n "${ETHERSCAN_API_KEY}" ]; then
VERIFY_OPTION="--verify"
fi

if [ "${DEPLOY_TYPE}" = "core" ]; then
if [ -z "$ORACLE_KEYSTORE_ADDRESS" ]; then
echo "ORACLE_KEYSTORE_ADDRESS not specified"
Expand Down Expand Up @@ -65,6 +69,6 @@ elif [ "${DEPLOY_TYPE}" = "l1-gateway" ]; then
--use 0.8.26 \
--broadcast \
--json \
--verify \
${VERIFY_OPTION} \
--via-ir
fi
2 changes: 1 addition & 1 deletion infrastructure/nomad/playbooks/variables/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
env:
chain-id: "{{ environments[env].chain_id }}"
l1_rpc_url: "{{ resolved_l1_rpc_urls.split(',')[0] }}"
etherscan_api_key: "{{ etherscan_api_key }}"
etherscan_api_key: "{{ (etherscan_api_key) if env == 'testnet' else '' }}"

mev_commit_dashboard: &mev_commit_dashboard_job
name: mev-commit-dashboard
Expand Down

0 comments on commit 667d6d5

Please sign in to comment.