We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c149143 commit f9354d1Copy full SHA for f9354d1
p-token/src/processor/mod.rs
@@ -86,12 +86,15 @@ fn check_account_owner(account_info: &AccountInfo) -> ProgramResult {
86
87
/// Validates owner(s) are present.
88
///
89
-/// Note that `owner_account_info` will be immutable borrowed when it represents
+///
90
+/// # Safety
91
92
+/// The `owner_account_info` will be immutable borrowed when it represents
93
/// a multisig account, therefore it should not have any mutable borrows when
94
/// calling this function.
95
#[inline(always)]
96
#[allow(clippy::arithmetic_side_effects)]
-fn validate_owner(
97
+unsafe fn validate_owner(
98
expected_owner: &Pubkey,
99
owner_account_info: &AccountInfo,
100
signers: &[AccountInfo],
0 commit comments