Skip to content

Commit

Permalink
fix: transferSplToken not supporting different program types
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerkodezero committed Jan 9, 2025
1 parent 12399e1 commit 3719dc0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -162,6 +163,7 @@ extension SolanaClientTokenProgram on SolanaClient {
Ed25519HDPublicKey.fromBase58(associatedRecipientAccount.pubkey),
owner: owner.publicKey,
amount: amount,
tokenProgram: tokenProgramType,
);

final message = Message(
Expand Down

0 comments on commit 3719dc0

Please sign in to comment.