I have created an NFT using SRC20 on fuel. This is the part where I have set the name and symbol:
pub const NAME: str[10] = __to_str_array("token-name");
pub const SYMBOL: str[12] = __to_str_array("token-symbol");
impl SRC20 for Contract {
#[storage(read)]
fn name(asset: AssetId) -> Option<String> {
Some(String::from_ascii_str(from_str_array(NAME)))
}
#[storage(read)]
fn symbol(asset: AssetId) -> Option<String> {
Some(String::from_ascii_str(from_str_array(SYMBOL)))
}
}
But when I mint an NFT I get this in my wallet:
Here name and symbol is UNKNOWN. Shouldn’t this show
token-name
and token-symbol
?