Skip to content

Commit

Permalink
fix(svm): N-04 reset use of PDA signer in multicall handler
Browse files Browse the repository at this point in the history
Signed-off-by: Reinis Martinsons <[email protected]>
  • Loading branch information
Reinis-FRP committed Jan 6, 2025
1 parent 1fbad5e commit b58064a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion programs/multicall-handler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ pub mod multicall_handler {
pub fn handle_v3_across_message(ctx: Context<HandleV3AcrossMessage>, message: Vec<u8>) -> Result<()> {
// Some instructions might require being signed by handler PDA.
let (handler_signer, bump) = Pubkey::find_program_address(&[b"handler_signer"], &crate::ID);
let mut use_handler_signer = false;

let compiled_ixs: Vec<CompiledIx> = AnchorDeserialize::deserialize(&mut &message[..])?;

for compiled_ix in compiled_ixs {
// Will only sign with handler PDA if it is included in this instruction's accounts (checked below).
let mut use_handler_signer = false;

let mut accounts = Vec::with_capacity(compiled_ix.account_key_indexes.len());
let mut account_infos = Vec::with_capacity(compiled_ix.account_key_indexes.len());

Expand Down

0 comments on commit b58064a

Please sign in to comment.