소스 검색

Fix account owner check

febo 9 달 전
부모
커밋
8263275749
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;