add prints

This commit is contained in:
9qeklajc
2025-08-05 23:51:32 +02:00
parent 047215df80
commit 5c7820ef41
+3
View File
@@ -29,6 +29,7 @@ async def get_balance(unit: CurrencyUnit) -> int:
async def recieve_token(
token: str,
) -> tuple[int, CurrencyUnit, str]: # amount, unit, mint_url
print(token)
token_obj = deserialize_token_from_string(token)
if len(token_obj.keysets) > 1:
raise ValueError("Multiple keysets per token currently not supported")
@@ -39,8 +40,10 @@ async def recieve_token(
load_all_keysets=True,
unit=token_obj.unit,
)
await wallet.load_mint(token_obj.keysets[0])
print(token_obj.mint, TRUSTED_MINTS)
if token_obj.mint not in TRUSTED_MINTS:
return await swap_to_primary_mint(token_obj, wallet)