prod tokens
This commit is contained in:
parent
818b00dc55
commit
df9a774cae
|
|
@ -362,7 +362,7 @@ export async function getTokenBalance(walletAddress: string, currency: Currency)
|
|||
const publicKey = new PublicKey(walletAddress);
|
||||
|
||||
// For native SOL
|
||||
if (currency.tokenAddress === "So11111111111111111111111111111111111111112") {
|
||||
if (currency.tokenAddress === "11111111111111111111111111111111") {
|
||||
const balance = await connection.getBalance(publicKey);
|
||||
return balance / Math.pow(10, currency.decimals);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user