Skip to content

Commit

Permalink
fix: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Nov 29, 2024
1 parent 7f7a40f commit 15538f3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions pallets/nfts/src/features/approvals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,13 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
Ok(())
}

/// Checks whether the `delegate` has the necessary allowance to transfer items in the
/// `collection` that owned by the `account`.
/// Checks whether the `delegate` is approved to transfer items in the `collection` that owned
/// by the `account`.
///
/// - `collection`: The identifier of the collection.
/// - `account`: The account that granted the permission for `delegate` to transfer items in the
/// `collection`.
/// - `account`: The account that granted the permission for `delegate` to transfer items.
/// - `delegate`: The account that was previously allowed to take control of items in the
/// collection that owned by the `account`.
/// `collection` that owned by the `account`.
fn check_collection_approval(
collection: &T::CollectionId,
account: &T::AccountId,
Expand All @@ -331,10 +330,10 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
Ok(())
}

/// Checks whether the `delegate` has the necessary allowance to transfer items owned by the
/// `account` or a specific item in the collection. If the `delegate` has an approval to
/// transfer items in the collection that owned by the `account`, they can transfer every item
/// without requiring explicit approval for that item.
/// Checks whether the `delegate` is approved by the `account` to transfer items that owned by
/// the `account` or a specific item in the collection. If the `delegate` has
/// an approval to transfer items in the collection that owned by the `account`, they can
/// transfer every item without requiring explicit approval for that item.
///
/// - `collection`: The identifier of the collection.
/// - `maybe_item`: The optional item of the collection that the delegated account has an
Expand Down

0 comments on commit 15538f3

Please sign in to comment.