From e0da806f529471ca81d2d11f4bd8a89d06b493d8 Mon Sep 17 00:00:00 2001 From: Zhang ShengYan Date: Fri, 18 Oct 2024 17:14:40 +0800 Subject: [PATCH] fix: mint authority --- content/courses/onchain-development/anchor-cpi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/courses/onchain-development/anchor-cpi.md b/content/courses/onchain-development/anchor-cpi.md index 5c96a7456..53d396f9f 100644 --- a/content/courses/onchain-development/anchor-cpi.md +++ b/content/courses/onchain-development/anchor-cpi.md @@ -552,7 +552,7 @@ pub fn add_movie_review( CpiContext::new_with_signer( ctx.accounts.token_program.to_account_info(), MintTo { - authority: ctx.accounts.mint.to_account_info(), + authority: ctx.accounts.initializer.to_account_info(), to: ctx.accounts.token_account.to_account_info(), mint: ctx.accounts.mint.to_account_info() },