Function pallet_nfts::pallet::dispatchables::buy_item
source · pub fn buy_item<T: Config<I>, I: 'static>(
collection: T::CollectionId,
item: T::ItemId,
bid_price: ItemPrice<T, I>,
)
Expand description
Allows to buy an item if it’s up for sale.
Origin must be Signed and must not be the owner of the item
.
collection
: The collection of the item.item
: The item the sender wants to buy.bid_price
: The price the sender is willing to pay.
Emits ItemBought
on success.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::buy_item
.