From 3ce2f4f00f6c5f433c0e497dfd4f68f12d44263e Mon Sep 17 00:00:00 2001 From: Werries <164047992+wernerkodezero@users.noreply.github.com> Date: Tue, 14 Jan 2025 00:43:17 +0200 Subject: [PATCH] fix: transferSplToken not supporting different program types (#1665) Co-authored-by: Kirill Bubochkin --- .../lib/src/programs/token_program/solana_client_ext.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/solana/lib/src/programs/token_program/solana_client_ext.dart b/packages/solana/lib/src/programs/token_program/solana_client_ext.dart index d0fe043dbe..d2f24321d9 100644 --- a/packages/solana/lib/src/programs/token_program/solana_client_ext.dart +++ b/packages/solana/lib/src/programs/token_program/solana_client_ext.dart @@ -131,6 +131,7 @@ extension SolanaClientTokenProgram on SolanaClient { String? memo, SignatureCallback? onSigned, Commitment commitment = Commitment.finalized, + TokenProgramType tokenProgram = TokenProgramType.tokenProgram, }) async { final associatedRecipientAccount = await getAssociatedTokenAccount( owner: destination, @@ -162,6 +163,7 @@ extension SolanaClientTokenProgram on SolanaClient { Ed25519HDPublicKey.fromBase58(associatedRecipientAccount.pubkey), owner: owner.publicKey, amount: amount, + tokenProgram: tokenProgram, ); final message = Message(