From ca7cc10f7cc5b200f45b414c7b3a1275094da354 Mon Sep 17 00:00:00 2001 From: jonesmarvin8 <83104039+jonesmarvin8@users.noreply.github.com> Date: Mon, 22 Dec 2025 18:26:19 -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 | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/nssa/program_methods/guest/src/bin/token.rs b/nssa/program_methods/guest/src/bin/token.rs index f7ee9cc..714c44d 100644 --- a/nssa/program_methods/guest/src/bin/token.rs +++ b/nssa/program_methods/guest/src/bin/token.rs @@ -153,18 +153,10 @@ impl TokenDefinition { metadata_id: metadata_id.clone(), }); - if account_type == //NFTs must have supply 1 - TOKEN_STANDARD_NONFUNGIBLE - && total_supply != 1 - { - None - } else if account_type == //Fungible Tokens do not have metadata. - TOKEN_STANDARD_FUNGIBLE_TOKEN - && metadata_id != AccountId::new([0; 32]) - { - None - } else { - this + match account_type { + TOKEN_STANDARD_NONFUNGIBLE if total_supply != 1 + | TOKEN_STANDARD_FUNGIBLE_TOKEN if metadata_id != AccountId::new([0; 32]) => None + _ => this } } }