difftreelog
Leave only property keys in events
in: master
2 files changed
pallets/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(())
pallets/nonfungible/src/lib.rsdiffbeforeafterboth276 <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 ));281281282 Ok(())282 Ok(())