difftreelog
feat add recipient field to ItemCreated event
in: master
1 file changed
pallets/nft/src/lib.rsdiffbeforeafterboth495 /// * collection_id: Id of the collection where item was created.495 /// * collection_id: Id of the collection where item was created.496 /// 496 /// 497 /// * item_id: Id of an item. Unique within the collection.497 /// * item_id: Id of an item. Unique within the collection.498 ///499 /// * recipient: Owner of newly created item 498 ItemCreated(CollectionId, TokenId),500 ItemCreated(CollectionId, TokenId, AccountId),499501500 /// Collection item was burned.502 /// Collection item was burned.501 /// 503 /// 1635 {1637 {1636 CreateItemData::NFT(data) => {1638 CreateItemData::NFT(data) => {1637 let item = NftItemType {1639 let item = NftItemType {1638 owner,1640 owner: owner.clone(),1639 const_data: data.const_data,1641 const_data: data.const_data,1640 variable_data: data.variable_data1642 variable_data: data.variable_data1641 };1643 };1660 };1662 };166116631662 // call event1664 // call event1663 Self::deposit_event(RawEvent::ItemCreated(collection_id, <ItemListIndex>::get(collection_id)));1665 Self::deposit_event(RawEvent::ItemCreated(collection_id, <ItemListIndex>::get(collection_id), owner));166416661665 Ok(())1667 Ok(())1666 }1668 }