From 2f35976104cd964123aca7d14061115c3c456b86 Mon Sep 17 00:00:00 2001 From: Grigoriy Simonov Date: Tue, 17 Jan 2023 06:55:25 +0000 Subject: [PATCH] fix: remove `create_collection` deprecated warning --- --- a/pallets/unique/src/lib.rs +++ b/pallets/unique/src/lib.rs @@ -266,10 +266,12 @@ /// * `token_prefix`: Byte string containing the token prefix to mark a collection /// to which a token belongs (limit [`MAX_TOKEN_PREFIX_LENGTH`]). /// * `mode`: Type of items stored in the collection and type dependent data. - // returns collection ID + /// + /// returns collection ID + /// + /// Deprecated: `create_collection_ex` is more up-to-date and advanced, prefer it instead. #[weight = >::create_collection()] - #[deprecated(note = "`create_collection_ex` is more up-to-date and advanced, prefer it instead")] - pub fn create_collection( + fn create_collection( origin, collection_name: BoundedVec>, collection_description: BoundedVec>, -- gitstuff