difftreelog
doc+refactor: missed fixes
in: master
2 files changed
pallets/common/src/lib.rsdiffbeforeafterboth--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -469,7 +469,7 @@
/// Property key is too long
PropertyKeyIsTooLong,
- /// Only ASCII letters, digits, and symbols '_', '-', and '.' are allowed
+ /// Only ASCII letters, digits, and symbols `_`, `-`, and `.` are allowed
InvalidCharacterInPropertyKey,
/// Empty property keys are forbidden
pallets/unique/src/lib.rsdiffbeforeafterboth632 /// # Arguments632 /// # Arguments633 ///633 ///634 /// * collection_id.634 /// * collection_id.635 /// * properties - Vector of key-value pairs stored as the collection's metadata. Keys support Latin letters, '-', '_', and '.' as symbols.635 /// * properties - Vector of key-value pairs stored as the collection's metadata. Keys support Latin letters, `-`, `_`, and `.` as symbols.636 #[weight = T::CommonWeightInfo::set_collection_properties(properties.len() as u32)]636 #[weight = T::CommonWeightInfo::set_collection_properties(properties.len() as u32)]637 #[transactional]637 #[transactional]638 pub fn set_collection_properties(638 pub fn set_collection_properties(1022 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1022 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1023 dispatch_tx::<T, _>(collection_id, |d| {1023 dispatch_tx::<T, _>(collection_id, |d| {1024 if let Some(refungible_extensions) = d.refungible_extensions() {1024 if let Some(refungible_extensions) = d.refungible_extensions() {1025 refungible_extensions.repartition(&sender, token, amount)1025 refungible_extensions.repartition(&sender, token_id, amount)1026 } else {1026 } else {1027 fail!(<Error<T>>::RepartitionCalledOnNonRefungibleCollection)1027 fail!(<Error<T>>::RepartitionCalledOnNonRefungibleCollection)1028 }1028 }