From 3c902e54bd7302dc53ddaa5691670336544d4b00 Mon Sep 17 00:00:00 2001 From: Levi Schoen Date: Mon, 3 Apr 2023 11:30:02 -0700 Subject: [PATCH] fix: break testnet validator addresses into bash array for cd seed script --- .github/scripts/seed-internal-testnet.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/scripts/seed-internal-testnet.sh b/.github/scripts/seed-internal-testnet.sh index 34a0da66..ead9ab6c 100755 --- a/.github/scripts/seed-internal-testnet.sh +++ b/.github/scripts/seed-internal-testnet.sh @@ -77,12 +77,16 @@ npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$AXLUSD_CONTR # give dev-wallet enough delegation power to pass proposals by itself -# issue 300KAVA to delegate to each validator -kava tx issuance issue 600000000ukava kava1vlpsrmdyuywvaqrv7rx6xga224sqfwz3fyfhwq \ +# issue kava to dev wallet for delegating to each validator +kava tx issuance issue 6000000000ukava kava1vlpsrmdyuywvaqrv7rx6xga224sqfwz3fyfhwq \ --from dev-wallet --gas-prices 0.5ukava -y +# parse space seperated list of validators +# into bash array +read -r -a GENESIS_VALIDATOR_ADDRESS_ARRAY <<< "$GENESIS_VALIDATOR_ADDRESSES" + # delegate 300KAVA to each validator -for validator in "${GENESIS_VALIDATOR_ADDRESSES[@]}" +for validator in "${GENESIS_VALIDATOR_ADDRESS_ARRAY[@]}" do kava tx staking delegate "${validator}" 300000000ukava --from dev-wallet --gas-prices 0.5ukava -y done