Skip to content

Commit bb9d83f

Browse files
committed
solana: Add note on unconstrained mint account
1 parent 46e413f commit bb9d83f

File tree

1 file changed

+2
-0
lines changed
  • solana/programs/example-native-token-transfers/src/instructions

1 file changed

+2
-0
lines changed

solana/programs/example-native-token-transfers/src/instructions/initialize.rs

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ pub struct Initialize<'info> {
3737
)]
3838
pub config: Box<Account<'info, crate::config::Config>>,
3939

40+
// NOTE: this account is unconstrained and is the responsibility of the
41+
// handler to constrain it
4042
pub mint: Box<InterfaceAccount<'info, token_interface::Mint>>,
4143

4244
#[account(

0 commit comments

Comments
 (0)