I have a funding function like this, and I want to ensure the correct collection is required for funding. How can I check the collection name using the token id (object::Objecttoken::Token)?
I found the way to solve the problem above.
This is my code:
inline fun validate_nft_collection(token_id: &object::Object<token::Token>): std::string::String {
let collection = token::collection_name<token::Token>(*token_id);
collection
}