mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-04 06:13:10 +00:00
Update nssa/program_methods/guest/src/bin/token.rs
Co-authored-by: Daniil Polyakov <arjentix@gmail.com>
This commit is contained in:
parent
9601e0053e
commit
fe3c11fd3e
@ -74,17 +74,13 @@ const CURRENT_VERSION: u8 = 1;
|
|||||||
const TOKEN_METADATA_DATA_SIZE: usize = 463;
|
const TOKEN_METADATA_DATA_SIZE: usize = 463;
|
||||||
|
|
||||||
fn is_token_standard_valid(standard: u8) -> bool {
|
fn is_token_standard_valid(standard: u8) -> bool {
|
||||||
if standard == TOKEN_STANDARD_FUNGIBLE_TOKEN {
|
matches!(
|
||||||
true
|
standard,
|
||||||
} else if standard == TOKEN_STANDARD_FUNGIBLE_ASSET {
|
TOKEN_STANDARD_FUNGIBLE_TOKEN
|
||||||
true
|
| TOKEN_STANDARD_FUNGIBLE_ASSET
|
||||||
} else if standard == TOKEN_STANDARD_NONFUNGIBLE {
|
| TOKEN_STANDARD_NONFUNGIBLE
|
||||||
true
|
| TOKEN_STANDARD_NONFUNGIBLE_PRINTABLE
|
||||||
} else if standard == TOKEN_STANDARD_NONFUNGIBLE_PRINTABLE {
|
)
|
||||||
true
|
|
||||||
} else {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_metadata_type_valid(standard: u8) -> bool {
|
fn is_metadata_type_valid(standard: u8) -> bool {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user