Update nssa/program_methods/guest/src/bin/token.rs

Co-authored-by: Daniil Polyakov <arjentix@gmail.com>
This commit is contained in:
jonesmarvin8 2025-12-22 18:24:59 -05:00 committed by GitHub
parent 9601e0053e
commit fe3c11fd3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {