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
@@ -46,7 +46,7 @@ def get_associated_bonding_curve_address(
async def get_bonding_curve_state(
conn: AsyncClient, curve_address: Pubkey
) -> BondingCurveState:
response = await conn.get_account_info(curve_address)
response = await conn.get_account_info(curve_address, encoding="base64")
if not response.value or not response.value.data:
raise ValueError("Invalid curve state: No data")