Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Update instruction.rs #7147

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions token-group/interface/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use {
spl_pod::{
bytemuck::{pod_bytes_of, pod_from_bytes},
optional_keys::OptionalNonZeroPubkey,
primitives::PodU32,
primitives::PodU64,
},
};

Expand All @@ -23,7 +23,7 @@ pub struct InitializeGroup {
/// Update authority for the group
pub update_authority: OptionalNonZeroPubkey,
/// The maximum number of group members
pub max_size: PodU32,
pub max_size: PodU64,
}

/// Instruction data for updating the max size of a `Group`
Expand All @@ -32,7 +32,7 @@ pub struct InitializeGroup {
#[discriminator_hash_input("spl_token_group_interface:update_group_max_size")]
pub struct UpdateGroupMaxSize {
/// New max size for the group
pub max_size: PodU32,
pub max_size: PodU64,
}

/// Instruction data for updating the authority of a `Group`
Expand Down Expand Up @@ -155,7 +155,7 @@ pub fn initialize_group(
mint: &Pubkey,
mint_authority: &Pubkey,
update_authority: Option<Pubkey>,
max_size: u32,
max_size: U64,
) -> Instruction {
let update_authority = OptionalNonZeroPubkey::try_from(update_authority)
.expect("Failed to deserialize `Option<Pubkey>`");
Expand All @@ -180,7 +180,7 @@ pub fn update_group_max_size(
program_id: &Pubkey,
group: &Pubkey,
update_authority: &Pubkey,
max_size: u32,
max_size: U64,
) -> Instruction {
let data = TokenGroupInstruction::UpdateGroupMaxSize(UpdateGroupMaxSize {
max_size: max_size.into(),
Expand Down