Skip to content

Commit

Permalink
Allow multisig pda to be writable (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante authored May 25, 2021
1 parent 4932c71 commit 0688c60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions programs/multisig/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ pub mod multisig {
.accounts
.iter()
.map(|acc| {
let mut acc = acc.clone();
if &acc.pubkey == ctx.accounts.multisig_signer.key {
AccountMeta::new_readonly(acc.pubkey, true)
} else {
acc.clone()
acc.is_signer = true;
}
acc
})
.collect();
let seeds = &[
Expand Down

0 comments on commit 0688c60

Please sign in to comment.