From fe3c11fd3e1185df9c355a304f1a5be9a927422c Mon Sep 17 00:00:00 2001 From: jonesmarvin8 <83104039+jonesmarvin8@users.noreply.github.com> Date: Mon, 22 Dec 2025 18:24:59 -0500 Subject: [PATCH] Update nssa/program_methods/guest/src/bin/token.rs Co-authored-by: Daniil Polyakov --- nssa/program_methods/guest/src/bin/token.rs | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/nssa/program_methods/guest/src/bin/token.rs b/nssa/program_methods/guest/src/bin/token.rs index 3adf4fc..5b1bc01 100644 --- a/nssa/program_methods/guest/src/bin/token.rs +++ b/nssa/program_methods/guest/src/bin/token.rs @@ -74,17 +74,13 @@ const CURRENT_VERSION: u8 = 1; const TOKEN_METADATA_DATA_SIZE: usize = 463; fn is_token_standard_valid(standard: u8) -> bool { - if standard == TOKEN_STANDARD_FUNGIBLE_TOKEN { - true - } else if standard == TOKEN_STANDARD_FUNGIBLE_ASSET { - true - } else if standard == TOKEN_STANDARD_NONFUNGIBLE { - true - } else if standard == TOKEN_STANDARD_NONFUNGIBLE_PRINTABLE { - true - } else { - false - } + matches!( + standard, + TOKEN_STANDARD_FUNGIBLE_TOKEN + | TOKEN_STANDARD_FUNGIBLE_ASSET + | TOKEN_STANDARD_NONFUNGIBLE + | TOKEN_STANDARD_NONFUNGIBLE_PRINTABLE + ) } fn is_metadata_type_valid(standard: u8) -> bool {