From 579ff144770c7b6bc9d33add7db2b130a6599c24 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Thu, 12 May 2022 15:09:37 +0000 Subject: [PATCH] Leave only property keys in events --- --- 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 { 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(()) --- a/pallets/nonfungible/src/lib.rs +++ b/pallets/nonfungible/src/lib.rs @@ -276,7 +276,7 @@ >::deposit_event(CommonEvent::TokenPropertySet( collection.id, token_id, - property, + property.key, )); Ok(()) -- gitstuff