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 02542a6 commit 6483a85
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 6483a85

Please sign in to comment.