#[smart_beaver::extension] pub mod psp22_metadata_extension { use ink::prelude::string::String; use crate::traits::PSP22Metadata; #[smart_beaver::storage] pub struct Token { pub name: Option, pub symbol: Option, pub decimals: u8, } impl PSP22Metadata for Token { #[ink(message)] fn token_name(&self) -> Option { self.name.clone() } #[ink(message)] fn token_symbol(&self) -> Option { self.symbol.clone() } #[ink(message)] fn token_decimals(&self) -> u8 { self.decimals } } }