Function pallet_ip_pallet::pallet::dispatchables::accept_purchase
source · pub fn accept_purchase<T: Config>(offer_id: T::OfferId)Expand description
Accepts a purchase offer
Allows the buyer to accept the offer and create a purchase contract.
§Arguments
origin- Must be signed by the buyeroffer_id- ID of the offer to accept
§Events
Event::ContractCreated- When contract is created
§Errors
Error::OfferNotFound- If offer doesn’t existError::NotAPurchaseOffer- If offer is not a purchase offer
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::accept_purchase.