Skip to content

Commit 52b685d

Browse files
authored
Add specific RLN-contract repo commit version (#95)
* Add specific RLN-contract repo commit version * Verify git commit checkout and use known default commit * remove commit hash check in deploy_rln_contract * verify that RLN_CONTRACT_REPO_COMMIT is not empty
1 parent ecb2186 commit 52b685d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

deploy_rln_contract.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ if [ ! -d "waku-rlnv2-contract" ]; then
1313
git clone https://github.com/waku-org/waku-rlnv2-contract.git
1414
fi
1515

16+
if [ -z "$RLN_CONTRACT_REPO_COMMIT" ]; then
17+
echo "RLN_CONTRACT_REPO_COMMIT is not set"
18+
exit 1
19+
fi
20+
1621
cd /waku-rlnv2-contract
22+
git checkout $RLN_CONTRACT_REPO_COMMIT
1723

1824
#3. Replace the hardcoded MAX_MESSAGE_LIMIT
1925
sed -i "s/\b100\b/${MAX_MESSAGE_LIMIT}/g" script/Deploy.s.sol

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ services:
3838
labels:
3939
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
4040
environment:
41+
- RLN_CONTRACT_REPO_COMMIT=${RLN_CONTRACT_REPO_COMMIT:-64df4593c6a14e43b8b0e9b396d2f4772bb08b34}
4142
- PRIVATE_KEY=${PRIVATE_KEY}
4243
- RPC_URL=${RPC_URL:-http://foundry:8545}
4344
- ETH_FROM=${ETH_FROM}

wakusim.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ ETH_FROM=0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
1515
MAX_MESSAGE_LIMIT=100
1616
# RLNv2 limits
1717
RLN_RELAY_MSG_LIMIT=100
18-
RLN_RELAY_EPOCH_SEC=600
18+
RLN_RELAY_EPOCH_SEC=600
19+
RLN_CONTRACT_REPO_COMMIT=64df4593c6a14e43b8b0e9b396d2f4772bb08b34

0 commit comments

Comments
 (0)