Skip to content

Commit

Permalink
Add InstructionName::UpdateMetadata to Rust client
Browse files Browse the repository at this point in the history
  • Loading branch information
danenbm committed Oct 5, 2023
1 parent e804b70 commit c03745b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clients/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub enum InstructionName {
SetAndVerifyCollection,
MintToCollectionV1,
SetDecompressibleState,
UpdateMetadata,
}

pub fn get_instruction_type(full_bytes: &[u8]) -> InstructionName {
Expand Down Expand Up @@ -54,7 +55,7 @@ pub fn get_instruction_type(full_bytes: &[u8]) -> InstructionName {
[82, 104, 152, 6, 149, 111, 100, 13] => InstructionName::SetDecompressibleState,
// `SetDecompressableState` instruction mapped to `SetDecompressibleState` instruction
[18, 135, 238, 168, 246, 195, 61, 115] => InstructionName::SetDecompressibleState,

[170, 182, 43, 239, 97, 78, 225, 186] => InstructionName::UpdateMetadata,
_ => InstructionName::Unknown,
}
}
Expand Down

0 comments on commit c03745b

Please sign in to comment.