Function pallet_ip_pallet::pallet::dispatchables::expire_license
source · pub fn expire_license<T: Config>(contract_id: T::ContractId)Expand description
Expires a license contract after its duration has ended
Allows any party to expire a license contract once its duration has passed. Cleans up contract storage and updates NFT contract mappings.
§Arguments
origin- Any signed partycontract_id- ID of the license contract to expire
§Events
Event::ContractExpired- When license is successfully expired
§Errors
Error::ContractNotFound- If contract doesn’t existError::NotALicenseContract- If contract is a purchase contractError::LicenseNotExpired- If license duration hasn’t ended yet
§State Changes
- Removes contract from
Contractsstorage - Updates
NFTContractsmapping to remove expired license
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::expire_license.