Skip to content

Commit d534103

Browse files
Add derive traits for TokenMetadata struct (#1446)
### What Add Debug, PartialEq, Eq, PartialOrd, and Ord trait implementations to TokenMetadata struct. ### Why Support comparison operations and debug formatting for token metadata. The type is simple, and it's reasonable to include these impls. Close #1444
1 parent c1d2b5c commit d534103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soroban-token-sdk/src/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use soroban_sdk::{contracttype, symbol_short, unwrap::UnwrapOptimized, Env, Stri
22

33
const METADATA_KEY: Symbol = symbol_short!("METADATA");
44

5-
#[derive(Clone)]
5+
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
66
#[contracttype]
77
pub struct TokenMetadata {
88
pub decimal: u32,

0 commit comments

Comments
 (0)