Skip to content

Conversation

@ivandzen
Copy link
Contributor

No description provided.

ivanl added 30 commits December 1, 2021 13:36
otselnik
otselnik previously approved these changes Dec 20, 2021
s-medvedev
s-medvedev previously approved these changes Dec 22, 2021
Comment on lines 23 to 35
ACCOUNT=$(solana address -k "/$HOME/.config/solana/id.json")
echo "New account $ACCOUNT"
if ! solana account "$ACCOUNT"; then
echo "airdropping..."
solana airdrop 5000 "$ACCOUNT"
# check that balance >= 10 otherwise airdroping by 1 SOL up to 10
BALANCE=$(solana balance "$ACCOUNT" | tr '.' '\t'| tr '[:space:]' '\t' | cut -f1)
while [ "$BALANCE" -lt 10 ]; do
solana airdrop 1 "$ACCOUNT"
sleep 1
BALANCE=$(solana balance "$ACCOUNT" | tr '.' '\t'| tr '[:space:]' '\t' | cut -f1)
done
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better to use: create-test-accounts.sh 1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@s-medvedev s-medvedev merged commit 2f4dde6 into develop Dec 22, 2021
@s-medvedev s-medvedev deleted the 344_сreate_integration_tests_for_airdropper branch December 22, 2021 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants