Function pallet_nfts::pallet::dispatchables::set_price
source · pub fn set_price<T: Config<I>, I: 'static>(
collection: T::CollectionId,
item: T::ItemId,
price: Option<<<T as Config<I>>::Currency as Currency<<T as SystemConfig>::AccountId>>::Balance>,
whitelisted_buyer: Option<<<T as SystemConfig>::Lookup as StaticLookup>::Source>
)
Expand description
Set (or reset) the price for an item.
Origin must be Signed and must be the owner of the item
.
collection
: The collection of the item.item
: The item to set the price for.price
: The price for the item. PassNone
, to reset the price.buyer
: Restricts the buy operation to a specific account.
Emits ItemPriceSet
on success if the price is not None
.
Emits ItemPriceRemoved
on success if the price is None
.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_price
.