Skip to content

Commit

Permalink
allow signer/mut when it's not required
Browse files Browse the repository at this point in the history
  • Loading branch information
oxfeeefeee committed Sep 9, 2023
1 parent 8f65a8f commit eb06fd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/programs/loader/src/goscript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ where
let mut fields = vec![];
for (i, acc_meta) in self.ix_meta.accounts.iter().enumerate() {
let account = &self.accounts[i];
if acc_meta.is_signer != account.is_signer {
if acc_meta.is_signer && !account.is_signer {
return Err(error!(GolError::RtCheckSigner));
}
if acc_meta.is_mut != account.is_writable {
if acc_meta.is_mut && !account.is_writable {
return Err(error!(GolError::RtCheckMutable));
}
fields.push(i.into());
Expand Down

0 comments on commit eb06fd0

Please sign in to comment.