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
290 u128,290 u128,
291 ),291 ),
292292
293 CollectionPropertySet(CollectionId, Property),293 CollectionPropertySet(CollectionId, PropertyKey),
294294
295 CollectionPropertyDeleted(CollectionId, PropertyKey),295 CollectionPropertyDeleted(CollectionId, PropertyKey),
296296
297 TokenPropertySet(CollectionId, TokenId, Property),297 TokenPropertySet(CollectionId, TokenId, PropertyKey),
298298
299 TokenPropertyDeleted(CollectionId, TokenId, PropertyKey),299 TokenPropertyDeleted(CollectionId, TokenId, PropertyKey),
300300
301 PropertyPermissionSet(CollectionId, PropertyKeyPermission),301 PropertyPermissionSet(CollectionId, PropertyKey),
302 }302 }
303303
304 #[pallet::error]304 #[pallet::error]
764 })764 })
765 .map_err(|e| -> Error<T> { e.into() })?;765 .map_err(|e| -> Error<T> { e.into() })?;
766766
767 Self::deposit_event(Event::CollectionPropertySet(collection.id, property));767 Self::deposit_event(Event::CollectionPropertySet(collection.id, property.key));
768768
769 Ok(())769 Ok(())
770 }770 }
837837
838 Self::deposit_event(Event::PropertyPermissionSet(838 Self::deposit_event(Event::PropertyPermissionSet(
839 collection.id,839 collection.id,
840 property_permission,840 property_permission.key,
841 ));841 ));
842842
843 Ok(())843 Ok(())
modifiedpallets/nonfungible/src/lib.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/lib.rs
+++ b/pallets/nonfungible/src/lib.rs
@@ -276,7 +276,7 @@
 		<PalletCommon<T>>::deposit_event(CommonEvent::TokenPropertySet(
 			collection.id,
 			token_id,
-			property,
+			property.key,
 		));
 
 		Ok(())