Skip to content

Commit

Permalink
update initialize_member instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Oct 17, 2023
1 parent 03c53db commit df16485
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions token-group/interface/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ pub enum TokenGroupInterfaceInstruction {
/// Accounts expected by this instruction:
///
/// 0. `[w]` Member
/// 1. `[w]` Group
/// 2. `[s]` Group update authority
/// 1. `[s]` Member update authority
/// 2. `[w]` Group
/// 3. `[s]` Group update authority
InitializeMember(InitializeMember),
}
impl TokenGroupInterfaceInstruction {
Expand Down Expand Up @@ -225,13 +226,15 @@ pub fn update_group_authority(
#[allow(clippy::too_many_arguments)]
pub fn initialize_member(
program_id: &Pubkey,
member: &Pubkey,
member_update_authority: &Pubkey,
group: &Pubkey,
group_update_authority: &Pubkey,
member: &Pubkey,
) -> Instruction {
let data = TokenGroupInterfaceInstruction::InitializeMember(InitializeMember {}).pack();
let accounts = vec![
AccountMeta::new(*member, false),
AccountMeta::new_readonly(*member_update_authority, true),
AccountMeta::new(*group, false),
AccountMeta::new_readonly(*group_update_authority, true),
];
Expand Down

0 comments on commit df16485

Please sign in to comment.