FV-ANC-2-CL1 Unvalidated signers
Bad
// No validation to check if `authority` signed the transaction
pub authority: AccountInfo<'info>,
Good
// Ensures `authority` is a valid signer
pub authority: Signer<'info>,
Last updated
Was this helpful?