git.delta.rocks / unique-network / refs/commits / 5b3cd06dc051

difftreelog

doc: adjust create_collection deprecation

Farhad Hakimov2022-07-19parent: #aed873b.patch.diff
in: master

1 file changed

modifiedpallets/unique/src/lib.rsdiffbeforeafterboth
34//!34//!
35//! ### Dispatchables35//! ### Dispatchables
36//!36//!
37//! - `create_collection` - Create a collection of tokens. **Deprecated**, use `createCollectionEx`.37//! - `create_collection` - Create a collection of tokens. **Deprecated**, use `create_collection_ex`.
38//! - `create_collection_ex` - Create a collection of tokens with explicit parameters.38//! - `create_collection_ex` - Create a collection of tokens with explicit parameters.
39//! - `destroy_collection` - Destroy a collection if no tokens exist within.39//! - `destroy_collection` - Destroy a collection if no tokens exist within.
40//! - `add_to_allow_list` - Add an address to allow list.40//! - `add_to_allow_list` - Add an address to allow list.
298 /// of certain length. The initial owner of the collection is set298 /// of certain length. The initial owner of the collection is set
299 /// to the address that signed the transaction and can be changed later.299 /// to the address that signed the transaction and can be changed later.
300 ///300 ///
301 /// Deprecated! Prefer [`create_collection_ex`][`Pallet::create_collection_ex`] instead.301 /// Prefer the more advanced [`create_collection_ex`][`Pallet::create_collection_ex`] instead.
302 ///302 ///
303 /// # Permissions303 /// # Permissions
304 ///304 ///
316 // returns collection ID316 // returns collection ID
317 #[weight = <SelfWeightOf<T>>::create_collection()]317 #[weight = <SelfWeightOf<T>>::create_collection()]
318 #[transactional]318 #[transactional]
319 #[deprecated]319 #[deprecated(note = "`create_collection_ex` is more up-to-date and advanced, prefer it instead")]
320 pub fn create_collection(320 pub fn create_collection(
321 origin,321 origin,
322 collection_name: BoundedVec<u16, ConstU32<MAX_COLLECTION_NAME_LENGTH>>,322 collection_name: BoundedVec<u16, ConstU32<MAX_COLLECTION_NAME_LENGTH>>,