git.delta.rocks / unique-network / refs/commits / 2f35976104cd

difftreelog

fix remove `create_collection` deprecated warning

Grigoriy Simonov2023-01-17parent: #619a7e5.patch.diff
in: master

1 file changed

modifiedpallets/unique/src/lib.rsdiffbeforeafterboth
266 /// * `token_prefix`: Byte string containing the token prefix to mark a collection266 /// * `token_prefix`: Byte string containing the token prefix to mark a collection
267 /// to which a token belongs (limit [`MAX_TOKEN_PREFIX_LENGTH`]).267 /// to which a token belongs (limit [`MAX_TOKEN_PREFIX_LENGTH`]).
268 /// * `mode`: Type of items stored in the collection and type dependent data.268 /// * `mode`: Type of items stored in the collection and type dependent data.
269 ///
269 // returns collection ID270 /// returns collection ID
271 ///
272 /// Deprecated: `create_collection_ex` is more up-to-date and advanced, prefer it instead.
270 #[weight = <SelfWeightOf<T>>::create_collection()]273 #[weight = <SelfWeightOf<T>>::create_collection()]
271 #[deprecated(note = "`create_collection_ex` is more up-to-date and advanced, prefer it instead")]
272 pub fn create_collection(274 fn create_collection(
273 origin,275 origin,
274 collection_name: BoundedVec<u16, ConstU32<MAX_COLLECTION_NAME_LENGTH>>,276 collection_name: BoundedVec<u16, ConstU32<MAX_COLLECTION_NAME_LENGTH>>,
275 collection_description: BoundedVec<u16, ConstU32<MAX_COLLECTION_DESCRIPTION_LENGTH>>,277 collection_description: BoundedVec<u16, ConstU32<MAX_COLLECTION_DESCRIPTION_LENGTH>>,