From 3719dc0cfea883dad4e050a8218aadbaafe5d8bb Mon Sep 17 00:00:00 2001 From: wernerkodezero Date: Thu, 9 Jan 2025 15:54:43 +0200 Subject: [PATCH] fix: transferSplToken not supporting different program types --- .../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..e4bb2fd1f1 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 tokenProgramType = 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: tokenProgramType, ); final message = Message(