diff --git a/pallets/nfts/src/features/approvals.rs b/pallets/nfts/src/features/approvals.rs index bda5fa4f..a75ec57f 100644 --- a/pallets/nfts/src/features/approvals.rs +++ b/pallets/nfts/src/features/approvals.rs @@ -72,7 +72,6 @@ impl, I: 'static> Pallet { .try_insert(delegate.clone(), deadline) .map_err(|_| Error::::ReachedApprovalLimit)?; Item::::insert(collection, item, &details); - Self::deposit_event(Event::TransferApproved { collection, item: Some(item), diff --git a/pallets/nfts/src/lib.rs b/pallets/nfts/src/lib.rs index b6ff79b6..8756c85c 100644 --- a/pallets/nfts/src/lib.rs +++ b/pallets/nfts/src/lib.rs @@ -1476,8 +1476,9 @@ pub mod pallet { ) -> DispatchResult { let origin = ensure_signed(origin)?; let depositor = match namespace { - AttributeNamespace::CollectionOwner => - Self::collection_owner(collection).ok_or(Error::::UnknownCollection)?, + AttributeNamespace::CollectionOwner => { + Self::collection_owner(collection).ok_or(Error::::UnknownCollection)? + }, _ => origin.clone(), }; Self::do_set_attribute(origin, collection, maybe_item, namespace, key, value, depositor) diff --git a/pallets/nfts/src/tests.rs b/pallets/nfts/src/tests.rs index 0a77aa8c..dddc6369 100644 --- a/pallets/nfts/src/tests.rs +++ b/pallets/nfts/src/tests.rs @@ -3399,9 +3399,9 @@ fn collection_locking_should_work() { let stored_config = CollectionConfigOf::::get(collection_id).unwrap(); let full_lock_config = collection_config_from_disabled_settings( - CollectionSetting::TransferableItems | - CollectionSetting::UnlockedMetadata | - CollectionSetting::UnlockedAttributes, + CollectionSetting::TransferableItems + | CollectionSetting::UnlockedMetadata + | CollectionSetting::UnlockedAttributes, ); assert_eq!(stored_config, full_lock_config); });