fn try_identify_pool_id(token_id: &String) -> Result<u64, &'static str> {
    if token_id.starts_with(":") {
        if let Ok(pool_id) = str::parse::<u64>(&token_id[1..token_id.len()]) {
            Ok(pool_id)
        } else {
            Err("Illegal pool id")
        }
    } else {
        Err("Illegal pool id")
    }
}
/// [AUDIT_06]
/// This is used to parse token_id fields in mft protocol used in ref,
/// So, if we choose #nn as a partern, should announce it in mft protocol.
/// cause : is not allowed in a normal account id, it can be a partern leading char
[AUDIT_06]
This is used to parse token_id fields in mft protocol used in ref,
So, if we choose #nn as a partern, should announce it in mft protocol.
cause : is not allowed in a normal account id, it can be a partern leading char
[ AUDIT_06 ] This is used to parse token_id fields in mft protocol used in ref So if we choose #nn as a partern should announce it in mft protocol . cause : is not allowed in a normal account id it can be a partern leading char
fn try_identify_pool_id(token_id: &String) -> Result<u64, &'static str> {
    if token_id.starts_with(":") {
        if let Ok(pool_id) = str::parse::<u64>(&token_id[1..token_id.len()]) {
            Ok(pool_id)
        } else {
            Err("Illegal pool id")
        }
    } else {
        Err("Illegal pool id")
    }
}
fn try_identify_pool_id ( token_id : & String ) -> Result < u64 , & ' static str > { if token_id . starts_with ( " " ) { if let Ok ( pool_id ) = str :: parse :: < u64 > ( & token_id [ 1 .. token_id . len ( ) ] ) { Ok ( pool_id ) } else { Err ( " " ) } } else { Err ( " " ) } }
[AUDIT_06]
This is used to parse token_id fields in mft protocol used in ref,
So, if we choose #nn as a partern, should announce it in mft protocol.
[ AUDIT_06 ] This is used to parse token_id fields in mft protocol used in ref So if we choose #nn as a partern should announce it in mft protocol .
token_id
&String
token_id
&String