Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 811fbb1

Browse files
committed
Fix account owner check
1 parent 7eb7bb1 commit 811fbb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

program/src/processor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn validate_owner(
102102
return Err(TokenError::OwnerMismatch.into());
103103
}
104104

105-
if owner_account_info.data_len() == Multisig::LEN && &crate::ID != owner_account_info.owner() {
105+
if owner_account_info.data_len() == Multisig::LEN && &crate::ID == owner_account_info.owner() {
106106
let multisig = unsafe { load::<Multisig>(owner_account_info.borrow_data_unchecked())? };
107107

108108
let mut num_signers = 0;

0 commit comments

Comments
 (0)