Skip to content

Commit

Permalink
fix get-validator-addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
spypsy committed Feb 5, 2025
1 parent a95480c commit 95f75d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spartan/aztec-network/files/config/get-private-key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ KEY_INDEX=$(echo $POD_NAME | awk -F'-' '{print $NF}')
PRIVATE_KEY_INDEX=$((KEY_INDEX_START + KEY_INDEX))

echo "KEY_INDEX: $KEY_INDEX"
echo "PRIVATE_KEY_INDEX: $PRIVATE_KEY_INDEX"
echo "KEY_INDEX_START: $KEY_INDEX_START"
echo "PRIVATE_KEY_INDEX: $PRIVATE_KEY_INDEX"
echo "MNEMONIC: $(echo $MNEMONIC | cut -d' ' -f1-2)..."

# Get the private key from the mnemonic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ echo "First two words of mnemonic: $first_two"
VALIDATOR_ADDRESSES_LIST=""

i=$KEY_INDEX_START
while [ $i -lt $NUMBER_OF_VALIDATORS ]; do
while [ $i -lt $((KEY_INDEX_START + NUMBER_OF_VALIDATORS)) ]; do
# Get the private key from the mnemonic
private_key=$(cast wallet private-key "$MNEMONIC" --mnemonic-index $i)
address=$(cast wallet address "$private_key")
Expand Down

0 comments on commit 95f75d5

Please sign in to comment.