Skip to content

Commit

Permalink
fix(ms-auth): payer swap index change
Browse files Browse the repository at this point in the history
  • Loading branch information
ogmedia committed Jan 30, 2023
1 parent 252df6c commit e0d6369
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions programs/squads-mpl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ pub mod squads_mpl {
&& (Some(add_member_discriminator.as_slice()) == ix.data.get(0..8)
|| Some(add_member_and_change_threshold_discriminator.as_slice())
== ix.data.get(0..8))
&& account_index == 2
&& account_index == 1
{
// check that the ix account keys match the submitted account keys
if *ix_account_info.key != *ctx.accounts.member.key {
Expand Down Expand Up @@ -499,8 +499,8 @@ pub mod squads_mpl {
|| Some(add_member_and_change_threshold_discriminator.as_slice())
== ix.data.get(0..8)
{
ix.accounts[2] = AccountMeta::new(*ctx.accounts.member.key, true);
ix_account_infos[3] = ctx.accounts.member.to_account_info();
ix.accounts[1] = AccountMeta::new(*ctx.accounts.member.key, true);
ix_account_infos[2] = ctx.accounts.member.to_account_info();
}
invoke_signed(&ix, &ix_account_infos, &[&ms_authority_seeds])?;
}
Expand Down

0 comments on commit e0d6369

Please sign in to comment.