From 7b8997b3a46759717723cca551ccb15b816291e3 Mon Sep 17 00:00:00 2001 From: stubbsta Date: Wed, 4 Dec 2024 10:14:02 +0200 Subject: [PATCH] verify that RLN_CONTRACT_REPO_COMMIT is not empty --- deploy_rln_contract.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy_rln_contract.sh b/deploy_rln_contract.sh index 9b560e2..d199af7 100644 --- a/deploy_rln_contract.sh +++ b/deploy_rln_contract.sh @@ -13,6 +13,11 @@ if [ ! -d "waku-rlnv2-contract" ]; then git clone https://github.com/waku-org/waku-rlnv2-contract.git fi +if [ -z "$RLN_CONTRACT_REPO_COMMIT" ]; then + echo "RLN_CONTRACT_REPO_COMMIT is not set" + exit 1 +fi + cd /waku-rlnv2-contract git checkout $RLN_CONTRACT_REPO_COMMIT