Function pallet_ip_pallet::pallet::dispatchables::mint_nft
source · pub fn mint_nft<T: Config>(
name: String,
description: String,
filing_date: String,
jurisdiction: String,
)Expand description
Creates a new NFT representing intellectual property
§Arguments
origin- The account creating the NFTname- Name of the intellectual property (max length:Config::MaxNameLength)description- Detailed description (max length:Config::MaxDescriptionLength)filing_date- When the IP was filed (max length:Config::MaxNameLength)jurisdiction- Where the IP is registered (max length:Config::MaxNameLength)
§Events
Event::NftMinted- When NFT is successfully created
§Errors
Error::NameTooLong- If name exceeds maximum lengthError::DescriptionTooLong- If description exceeds maximum lengthError::FilingDateTooLong- If filing date exceeds maximum lengthError::JurisdictionTooLong- If jurisdiction exceeds maximum length
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::mint_nft.