Skip to content
Merged
Prev Previous commit
Next Next commit
#226 Specified Operator Keypair
  • Loading branch information
mich-master committed Oct 13, 2021
commit 0db99e9ac5252de8ce428cf2b7407e4355f9b593
4 changes: 1 addition & 3 deletions proxy/run-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ if [ "$ADDRESS" == "no wallet" ]; then
solana-keygen new --no-passphrase
fi

ACCOUNT_CONTENT=$(solana -u https://api.devnet.solana.com account $(solana address))
if [ "$ACCOUNT_CONTENT" == "Error" ]; then
if ! solana account $(solana address); then
echo "airdropping..."
solana airdrop 1000
else
# check that balance >= 10 otherwise airdroping by 1 SOL up to 10
BALANCE=$(solana balance | tr '.' '\t'| tr '[:space:]' '\t' | cut -f1)
while [ "$BALANCE" -lt 10 ]; do
Expand Down