mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-14 21:25:44 +00:00
[fix lint warnings: NFTs pallet] fix clippy::missing_errors_doc lint warnings (#14648)
* fix missing errors doc warnings * cargo +nightly fmt * Update frame/nfts/src/features/create_delete_item.rs * Update frame/nfts/src/features/create_delete_item.rs * Update frame/nfts/src/features/transfer.rs * Update frame/nfts/src/features/create_delete_collection.rs * add intra doc linking for errors * fmt * Apply suggestions from code review Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -19,6 +19,17 @@ use crate::*;
|
||||
use frame_support::pallet_prelude::*;
|
||||
|
||||
impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
||||
/// Performs the transfer action for the given `collection`, `item`, `dest`, and `event`.
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// This function returns a dispatch error in the following cases:
|
||||
/// - If the collection ID is invalid ([`UnknownCollection`](crate::Error::UnknownCollection)).
|
||||
/// - If the item ID is invalid ([`UnknownItem`](crate::Error::UnknownItem)).
|
||||
/// - If the item is locked or transferring it is disabled
|
||||
/// ([`ItemLocked`](crate::Error::ItemLocked)).
|
||||
/// - If the collection or item is non-transferable
|
||||
/// ([`ItemsNonTransferable`](crate::Error::ItemsNonTransferable)).
|
||||
pub fn do_transfer(
|
||||
collection: T::CollectionId,
|
||||
item: T::ItemId,
|
||||
|
||||
Reference in New Issue
Block a user