Skip to content

Commit 041f977

Browse files
committed
fix: m_mint must be mutable in initialize
1 parent 972e896 commit 041f977

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

programs/earn/src/instructions/admin/initialize.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ pub struct Initialize<'info> {
5555
)]
5656
pub old_global_account: Account<'info, OldGlobal>,
5757

58-
#[account(mint::token_program = token_program)]
58+
#[account(
59+
mut,
60+
mint::token_program = token_program
61+
)]
5962
pub m_mint: InterfaceAccount<'info, Mint>,
6063

6164
/// CHECK: This account is validated by its seeds

0 commit comments

Comments
 (0)