FV-ANC-3-CL6 Missing account constraints
Bad
#[account]
pub vault: Account<'info, Vault>;
pub admin: Signer<'info>; // No dependency enforced.
Good
#[account(has_one = admin)]
pub vault: Account<'info, Vault>;
pub admin: Signer<'info>; // Validates `admin` dependency.
PreviousFV-ANC-3-CL5 No is_initialized check when operating on an accountNextFV-ANC-3-CL7 Duplicate mutable accounts
Last updated
Was this helpful?