mirror of
https://github.com/logos-messaging/logos-messaging-simulator.git
synced 2026-01-07 16:33:07 +00:00
Verify git commit checkout and use known default commit
This commit is contained in:
parent
c79de498fb
commit
c118e37dc2
@ -15,6 +15,14 @@ fi
|
|||||||
|
|
||||||
cd /waku-rlnv2-contract
|
cd /waku-rlnv2-contract
|
||||||
git checkout $RLN_CONTRACT_REPO_COMMIT
|
git checkout $RLN_CONTRACT_REPO_COMMIT
|
||||||
|
# Verify the current commit
|
||||||
|
CURRENT_COMMIT=$(git rev-parse HEAD)
|
||||||
|
if [ "$CURRENT_COMMIT" = "$RLN_CONTRACT_REPO_COMMIT" ]; then
|
||||||
|
echo "You are on the expected branch: $CURRENT_COMMIT"
|
||||||
|
else
|
||||||
|
echo "Warning: You are on branch $CURRENT_COMMIT, but expected $RLN_CONTRACT_REPO_COMMIT"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
#3. Replace the hardcoded MAX_MESSAGE_LIMIT
|
#3. Replace the hardcoded MAX_MESSAGE_LIMIT
|
||||||
sed -i "s/\b100\b/${MAX_MESSAGE_LIMIT}/g" script/Deploy.s.sol
|
sed -i "s/\b100\b/${MAX_MESSAGE_LIMIT}/g" script/Deploy.s.sol
|
||||||
|
|||||||
@ -38,7 +38,7 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
|
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
|
||||||
environment:
|
environment:
|
||||||
- RLN_CONTRACT_REPO_COMMIT=${RLN_CONTRACT_REPO_COMMIT:-master}
|
- RLN_CONTRACT_REPO_COMMIT=${RLN_CONTRACT_REPO_COMMIT:-64df4593c6a14e43b8b0e9b396d2f4772bb08b34}
|
||||||
- PRIVATE_KEY=${PRIVATE_KEY}
|
- PRIVATE_KEY=${PRIVATE_KEY}
|
||||||
- RPC_URL=${RPC_URL:-http://foundry:8545}
|
- RPC_URL=${RPC_URL:-http://foundry:8545}
|
||||||
- ETH_FROM=${ETH_FROM}
|
- ETH_FROM=${ETH_FROM}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user