From ddbe5970a29c1d952b30942215fc92cc636b9f48 Mon Sep 17 00:00:00 2001 From: smypmsa Date: Sat, 28 Jun 2025 09:52:53 +0000 Subject: [PATCH] fix(examples): remove redunant imports, comments --- learning-examples/manual_buy.py | 6 ++++-- learning-examples/manual_sell.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/learning-examples/manual_buy.py b/learning-examples/manual_buy.py index 22e3bdd..b609bfc 100644 --- a/learning-examples/manual_buy.py +++ b/learning-examples/manual_buy.py @@ -6,7 +6,6 @@ import os import struct import base58 -import spl.token.instructions as spl_token import websockets from construct import Bytes, Flag, Int64ul, Struct from solana.rpc.async_api import AsyncClient @@ -18,7 +17,10 @@ from solders.keypair import Keypair from solders.message import Message from solders.pubkey import Pubkey from solders.transaction import Transaction, VersionedTransaction -from spl.token.instructions import create_idempotent_associated_token_account, get_associated_token_address +from spl.token.instructions import ( + create_idempotent_associated_token_account, + get_associated_token_address, +) # Here and later all the discriminators are precalculated. See learning-examples/calculate_discriminator.py EXPECTED_DISCRIMINATOR = struct.pack("