fix typos and add numeration gap for gatekeeper deployment

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2026-09-13 11:31:28 +03:00
parent e2f0d0fea4
commit 635853f170
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB

View File

@ -1,9 +1,9 @@
set -e
AVAILIABLE_NETWORKS=(anvil-localnet sepolia-testnet hoodi-testnet mordor-testnet)
NETWORK="${AVAILIABLE_NETWORKS[0]}"
AVAILABLE_NETWORKS=(anvil-localnet sepolia-testnet hoodi-testnet mordor-testnet)
NETWORK="${AVAILABLE_NETWORKS[0]}"
START=1
END=14
END=13
VERIFY_NEEDED="--verify"
LEGACY_FLAGS=""
@ -13,7 +13,7 @@ usage() {
echo -e "\t-e, --end - last contract deployment to be done."
echo -e "\t-n, --network - network name to be deployed on."
echo -e "\t-b, --blockscout - should try to use blockscout as verifier."
echo -e "\nAvailable network names: ${AVAILIABLE_NETWORKS[@]}"
echo -e "\nAvailable network names: ${AVAILABLE_NETWORKS[@]}"
echo -e "\nContract enumeration:"
echo "0) Reserve"
echo "1) Authority"
@ -29,7 +29,7 @@ usage() {
echo "11) AfterPartyFirst"
echo "12) AfterPartySecond"
echo "13) AfterPartyThird"
echo "14) Gatekeeper"
echo "69) Gatekeeper"
exit 1
}
@ -70,7 +70,7 @@ if [ "$NETWORK" == "anvil-localnet" ]; then
fi
found=false
for i in "${AVAILIABLE_NETWORKS[@]}"
for i in "${AVAILABLE_NETWORKS[@]}"
do
if [ "$i" == "$NETWORK" ] ; then
found=true
@ -82,7 +82,7 @@ done
if [ $found == false ] ; then
echo "ERROR: '${NETWORK}' is incorrect network for deployment, valid networks are:"
for i in "${AVAILIABLE_NETWORKS[@]}"
for i in "${AVAILABLE_NETWORKS[@]}"
do
echo -e "\t${i}"
done
@ -118,7 +118,7 @@ for i in $(seq $START $END); do
CONTRACT="AfterPartySecond"
elif [ "13" == "$i" ]; then
CONTRACT="AfterPartyThird"
elif [ "14" == "$i" ]; then
elif [ "69" == "$i" ]; then
CONTRACT="Gatekeeper"
else
echo "No contract found for index $i"