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
--- a/pallets/unique/src/lib.rs
+++ b/pallets/unique/src/lib.rs
@@ -632,7 +632,7 @@
 		/// # Arguments
 		///
 		/// * collection_id.
-		/// * properties - Vector of key-value pairs stored as the collection's metadata. Keys support Latin letters, '-', '_', and '.' as symbols.
+		/// * properties - Vector of key-value pairs stored as the collection's metadata. Keys support Latin letters, `-`, `_`, and `.` as symbols.
 		#[weight = T::CommonWeightInfo::set_collection_properties(properties.len() as u32)]
 		#[transactional]
 		pub fn set_collection_properties(
@@ -1022,7 +1022,7 @@
 			let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);
 			dispatch_tx::<T, _>(collection_id, |d| {
 				if let Some(refungible_extensions) = d.refungible_extensions() {
-					refungible_extensions.repartition(&sender, token, amount)
+					refungible_extensions.repartition(&sender, token_id, amount)
 				} else {
 					fail!(<Error<T>>::RepartitionCalledOnNonRefungibleCollection)
 				}