Skip to content

Commit

Permalink
substantiated comment regarding UncheckedAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Oct 4, 2024
1 parent 7ca038b commit 0b0027e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/protocol-contracts-solana/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ pub struct Withdraw<'info> {

#[account(mut)]
pub pda: Account<'info, Pda>,
/// CHECK: to account is not read so it's not dangerous
/// CHECK: to account is not read so no need to check its owners; the program neither knows nor cares who the owner is.
#[account(mut)]
pub to: UncheckedAccount<'info>,
}
Expand Down

0 comments on commit 0b0027e

Please sign in to comment.