From e8474012c46109561c3eb91ca08c6e5cb2cc3f0a Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Sat, 29 Jan 2022 17:02:05 +0000 Subject: [PATCH] Fixed false positive security warning. --- bin/airdrop | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/airdrop b/bin/airdrop index 4e7f7b2..3077267 100755 --- a/bin/airdrop +++ b/bin/airdrop @@ -56,7 +56,9 @@ if instrument is None: raise Exception(f"Could not find instrument with symbol '{args.symbol}'.") token: mango.Token = mango.Token.ensure(instrument) -if token.symbol == "SOL": +# The loaded `token` variable will be from the `context`, so if it's SOL it will be +# 'wrapped SOL' with a 1112 mint address, not regular SOL with a 1111 mint address. +if token.symbol == mango.SolToken.symbol: airdrop_sol(context, wallet, token, args.quantity) else: airdrop_token(context, wallet, token, args.faucet, args.quantity)