From ebd88183371163eb1697a66566f9c019f31270eb Mon Sep 17 00:00:00 2001 From: Sean Date: Fri, 27 Jan 2023 08:32:21 -0500 Subject: [PATCH] fix(ix-state): save the ix state for execute-transaction --- programs/squads-mpl/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/programs/squads-mpl/src/lib.rs b/programs/squads-mpl/src/lib.rs index ece8b9a..60157f1 100644 --- a/programs/squads-mpl/src/lib.rs +++ b/programs/squads-mpl/src/lib.rs @@ -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(()) })?;