From 5b3cd06dc051e8c9b6a080a0b83ccaf1f692a7e0 Mon Sep 17 00:00:00 2001 From: Farhad Hakimov Date: Tue, 19 Jul 2022 08:11:03 +0000 Subject: [PATCH] doc: adjust create_collection deprecation --- --- a/pallets/unique/src/lib.rs +++ b/pallets/unique/src/lib.rs @@ -34,7 +34,7 @@ //! //! ### Dispatchables //! -//! - `create_collection` - Create a collection of tokens. **Deprecated**, use `createCollectionEx`. +//! - `create_collection` - Create a collection of tokens. **Deprecated**, use `create_collection_ex`. //! - `create_collection_ex` - Create a collection of tokens with explicit parameters. //! - `destroy_collection` - Destroy a collection if no tokens exist within. //! - `add_to_allow_list` - Add an address to allow list. @@ -298,7 +298,7 @@ /// of certain length. The initial owner of the collection is set /// to the address that signed the transaction and can be changed later. /// - /// Deprecated! Prefer [`create_collection_ex`][`Pallet::create_collection_ex`] instead. + /// Prefer the more advanced [`create_collection_ex`][`Pallet::create_collection_ex`] instead. /// /// # Permissions /// @@ -316,14 +316,14 @@ // returns collection ID #[weight = >::create_collection()] #[transactional] - #[deprecated] + #[deprecated(note = "`create_collection_ex` is more up-to-date and advanced, prefer it instead")] pub fn create_collection( origin, collection_name: BoundedVec>, collection_description: BoundedVec>, token_prefix: BoundedVec>, mode: CollectionMode - ) -> DispatchResult { + ) -> DispatchResult { let data: CreateCollectionData = CreateCollectionData { name: collection_name, description: collection_description, -- gitstuff