Skip to content

Commit 0688c60

Browse files
Allow multisig pda to be writable (#12)
1 parent 4932c71 commit 0688c60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

programs/multisig/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ pub mod multisig {
140140
.accounts
141141
.iter()
142142
.map(|acc| {
143+
let mut acc = acc.clone();
143144
if &acc.pubkey == ctx.accounts.multisig_signer.key {
144-
AccountMeta::new_readonly(acc.pubkey, true)
145-
} else {
146-
acc.clone()
145+
acc.is_signer = true;
147146
}
147+
acc
148148
})
149149
.collect();
150150
let seeds = &[

0 commit comments

Comments
 (0)