git.delta.rocks / unique-network / refs/commits / 6fe077cb1993

difftreelog

doc+refactor: missed fixes

Farhad Hakimov2022-07-12parent: #ff0ca4c.patch.diff
in: master

2 files changed

modifiedpallets/common/src/lib.rsdiffbeforeafterboth
469 /// Property key is too long469 /// Property key is too long
470 PropertyKeyIsTooLong,470 PropertyKeyIsTooLong,
471471
472 /// Only ASCII letters, digits, and symbols '_', '-', and '.' are allowed472 /// Only ASCII letters, digits, and symbols `_`, `-`, and `.` are allowed
473 InvalidCharacterInPropertyKey,473 InvalidCharacterInPropertyKey,
474474
475 /// Empty property keys are forbidden475 /// Empty property keys are forbidden
modifiedpallets/unique/src/lib.rsdiffbeforeafterboth
632 /// # Arguments632 /// # Arguments
633 ///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 }