git.delta.rocks / unique-network / refs/commits / 579ff144770c

difftreelog

Leave only property keys in events

Daniel Shiposha2022-05-12parent: #c8640ac.patch.diff
in: master

2 files changed

modifiedpallets/common/src/lib.rsdiffbeforeafterboth
--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -290,15 +290,15 @@
 			u128,
 		),
 
-		CollectionPropertySet(CollectionId, Property),
+		CollectionPropertySet(CollectionId, PropertyKey),
 
 		CollectionPropertyDeleted(CollectionId, PropertyKey),
 
-		TokenPropertySet(CollectionId, TokenId, Property),
+		TokenPropertySet(CollectionId, TokenId, PropertyKey),
 
 		TokenPropertyDeleted(CollectionId, TokenId, PropertyKey),
 
-		PropertyPermissionSet(CollectionId, PropertyKeyPermission),
+		PropertyPermissionSet(CollectionId, PropertyKey),
 	}
 
 	#[pallet::error]
@@ -764,7 +764,7 @@
 		})
 		.map_err(|e| -> Error<T> { e.into() })?;
 
-		Self::deposit_event(Event::CollectionPropertySet(collection.id, property));
+		Self::deposit_event(Event::CollectionPropertySet(collection.id, property.key));
 
 		Ok(())
 	}
@@ -837,7 +837,7 @@
 
 		Self::deposit_event(Event::PropertyPermissionSet(
 			collection.id,
-			property_permission,
+			property_permission.key,
 		));
 
 		Ok(())
modifiedpallets/nonfungible/src/lib.rsdiffbeforeafterboth
276 <PalletCommon<T>>::deposit_event(CommonEvent::TokenPropertySet(276 <PalletCommon<T>>::deposit_event(CommonEvent::TokenPropertySet(
277 collection.id,277 collection.id,
278 token_id,278 token_id,
279 property,279 property.key,
280 ));280 ));
281281
282 Ok(())282 Ok(())