Browse Source

Fix account owner check

febo 9 tháng trước cách đây
mục cha
commit
8263275749
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      p-token/src/processor/mod.rs

+ 1 - 1
p-token/src/processor/mod.rs

@@ -102,7 +102,7 @@ fn validate_owner(
         return Err(TokenError::OwnerMismatch.into());
     }
 
-    if owner_account_info.data_len() == Multisig::LEN && &crate::ID != owner_account_info.owner() {
+    if owner_account_info.data_len() == Multisig::LEN && &crate::ID == owner_account_info.owner() {
         let multisig = unsafe { load::<Multisig>(owner_account_info.borrow_data_unchecked())? };
 
         let mut num_signers = 0;