From dfa3dd8c105c348da792586ad63d4a6ab16eb61c Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 16 Oct 2023 13:48:22 +0200 Subject: [PATCH] bump instruction discriminators --- token-group/interface/src/instruction.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/token-group/interface/src/instruction.rs b/token-group/interface/src/instruction.rs index 74d862102f4..8f51df4df43 100644 --- a/token-group/interface/src/instruction.rs +++ b/token-group/interface/src/instruction.rs @@ -18,7 +18,7 @@ use { /// Instruction data for initializing a new `Group` #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable, SplDiscriminate)] -#[discriminator_hash_input("spl_token_group_interface:initialize_group")] +#[discriminator_hash_input("spl_token_group_interface:initialize_token_group")] pub struct InitializeGroup { /// Update authority for the group pub update_authority: OptionalNonZeroPubkey, @@ -38,7 +38,7 @@ pub struct UpdateGroupMaxSize { /// Instruction data for updating the authority of a `Group` #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable, SplDiscriminate)] -#[discriminator_hash_input("spl_token_group_interface:update_group_authority")] +#[discriminator_hash_input("spl_token_group_interface:update_authority")] pub struct UpdateGroupAuthority { /// New authority for the group, or unset if `None` pub new_authority: OptionalNonZeroPubkey, @@ -278,7 +278,7 @@ mod test { max_size: 100.into(), }; let instruction = TokenGroupInterfaceInstruction::InitializeGroup(data); - let preimage = hash::hashv(&[format!("{NAMESPACE}:initialize_group").as_bytes()]); + let preimage = hash::hashv(&[format!("{NAMESPACE}:initialize_token_group").as_bytes()]); let discriminator = &preimage.as_ref()[..ArrayDiscriminator::LENGTH]; instruction_pack_unpack::(instruction, discriminator, data); } @@ -300,7 +300,7 @@ mod test { new_authority: OptionalNonZeroPubkey::default(), }; let instruction = TokenGroupInterfaceInstruction::UpdateGroupAuthority(data); - let preimage = hash::hashv(&[format!("{NAMESPACE}:update_group_authority").as_bytes()]); + let preimage = hash::hashv(&[format!("{NAMESPACE}:update_authority").as_bytes()]); let discriminator = &preimage.as_ref()[..ArrayDiscriminator::LENGTH]; instruction_pack_unpack::(instruction, discriminator, data); }