From 15538f38c13dfeee68b7999f6e1442849ec8b7df Mon Sep 17 00:00:00 2001 From: chungquantin <56880684+chungquantin@users.noreply.github.com> Date: Fri, 29 Nov 2024 13:55:31 +0700 Subject: [PATCH] fix: comments --- pallets/nfts/src/features/approvals.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pallets/nfts/src/features/approvals.rs b/pallets/nfts/src/features/approvals.rs index ec3646ba..4ef1f601 100644 --- a/pallets/nfts/src/features/approvals.rs +++ b/pallets/nfts/src/features/approvals.rs @@ -308,14 +308,13 @@ impl, I: 'static> Pallet { 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, @@ -331,10 +330,10 @@ impl, I: 'static> Pallet { 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