fix: use base64 explicitly

This commit is contained in:
smypmsa
2025-04-01 14:57:01 +00:00
parent 1064247e6d
commit c5a0258aa7
9 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ async def close_account_if_exists(client: SolanaClient, wallet: Wallet, account:
"""Safely close a token account if it exists and reclaim rent."""
try:
solana_client = await client.get_client()
info = await solana_client.get_account_info(account)
info = await solana_client.get_account_info(account, encoding="base64") # base64 encoding for account data by deafult
# WARNING: This will permanently burn all tokens in the account before closing it
# Closing account is impossible if balance is positive