git.delta.rocks / unique-network / refs/commits / 450376671e24

difftreelog

doc: fix documentation about allowlist

Grigoriy Simonov2022-07-21parent: #d1f105e.patch.diff
in: master

1 file changed

modifiedpallets/nonfungible/src/lib.rsdiffbeforeafterboth
86//!86//!
87//! ## Assumptions87//! ## Assumptions
88//!88//!
89//! * Sender should be in collection's allow list to perform operations on tokens.89//! * To perform operations on tokens sender should be in collection's allow list if collection access mode is `AllowList`.
9090
91#![cfg_attr(not(feature = "std"), no_std)]91#![cfg_attr(not(feature = "std"), no_std)]
9292
441441
442// unchecked calls skips any permission checks442// unchecked calls skips any permission checks
443impl<T: Config> Pallet<T> {443impl<T: Config> Pallet<T> {
444 /// Create ТFT collection444 /// Create NFT collection
445 ///445 ///
446 /// `init_collection` will take non-refundable deposit for collection creation.446 /// `init_collection` will take non-refundable deposit for collection creation.
447 ///447 ///
454 <PalletCommon<T>>::init_collection(owner, data, is_external)454 <PalletCommon<T>>::init_collection(owner, data, is_external)
455 }455 }
456456
457 /// Destroy ТFT collection457 /// Destroy NFT collection
458 ///458 ///
459 /// `destroy_collection` will throw error if collection contains any tokens.459 /// `destroy_collection` will throw error if collection contains any tokens.
460 /// Only owner can destroy collection.460 /// Only owner can destroy collection.