Skip to content

Commit

Permalink
fix: transferSplToken not supporting different program types (#1665)
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Bubochkin <ookami.kb@gmail.com>
  • Loading branch information
wernerkodezero and ookami-kb authored Jan 13, 2025
1 parent fc059bd commit 3ce2f4f
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 tokenProgram = 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: tokenProgram,
);

final message = Message(
Expand Down

0 comments on commit 3ce2f4f

Please sign in to comment.