difftreelog
doc: adjust create_collection deprecation
in: master
1 file changed
pallets/unique/src/lib.rsdiffbeforeafterboth34//!34//!35//! ### Dispatchables35//! ### Dispatchables36//!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 set299 /// 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 /// # Permissions304 ///304 ///316 // returns collection ID316 // returns collection ID317 #[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>>,