From 570e82e99de464a8b1aced02204c393ab1cd196b Mon Sep 17 00:00:00 2001 From: 0xRektified Date: Tue, 11 Nov 2025 19:11:22 +0800 Subject: [PATCH] fix: use buyer_ata instead of buyer_token_account in mint instruction --- content/spl-token-sale-tutorial/spl-token-sale-tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/spl-token-sale-tutorial/spl-token-sale-tutorial.md b/content/spl-token-sale-tutorial/spl-token-sale-tutorial.md index 95d009b..232aa04 100644 --- a/content/spl-token-sale-tutorial/spl-token-sale-tutorial.md +++ b/content/spl-token-sale-tutorial/spl-token-sale-tutorial.md @@ -294,7 +294,7 @@ The code does the following: // Setup mint instruction with mint as its own authority let mint_to_instruction = MintTo { mint: ctx.accounts.mint.to_account_info(), - to: ctx.accounts.buyer_token_account.to_account_info(), + to: ctx.accounts.buyer_ata.to_account_info(), authority: ctx.accounts.mint.to_account_info(), };