Skip to content

Commit

Permalink
fix(ix-state): save the ix state for execute-transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ogmedia committed Jan 27, 2023
1 parent a443f20 commit ebd8818
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion programs/squads-mpl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,10 @@ pub mod squads_mpl {
invoke_signed(&ix, &ix_account_infos, &[&authority_seeds])?;
}
};
// set this instruction as executed
ms_ix.set_executed()?;

// write the new struct back to the data slice
ms_ix.serialize(&mut &mut ms_ix_account.try_borrow_mut_data()?[8..])?;
Ok(())
})?;

Expand Down

0 comments on commit ebd8818

Please sign in to comment.