Skip to content

Commit

Permalink
fix(mesh): 2 signers for execute
Browse files Browse the repository at this point in the history
  • Loading branch information
ogmedia committed Sep 20, 2022
1 parent a4ddaae commit cccc84f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion programs/mesh/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ pub mod mesh {
)?
},

// invoke based on the custom pda
// invoke based on the custom pda & vault authority
MsAuthorityType::Custom => {
invoke_signed(
&ix,
Expand All @@ -407,6 +407,13 @@ pub mod mesh {
authority_index,
b"ix_authority",
&[authority_bump],
],
&[
b"squad",
ms_key.as_ref(),
&ctx.accounts.transaction.authority_index.to_le_bytes(),
b"authority",
&[ctx.accounts.transaction.authority_bump]
]]
)?
}
Expand Down Expand Up @@ -495,6 +502,13 @@ pub mod mesh {
authority_index,
b"ix_authority",
&[authority_bump],
],
&[
b"squad",
ms_key.as_ref(),
&tx.authority_index.to_le_bytes(),
b"authority",
&[tx.authority_bump]
]]
)?
}
Expand Down

0 comments on commit cccc84f

Please sign in to comment.