git.delta.rocks / unique-network / refs/commits / ba8a9dbd563a

difftreelog

doc: fix PR

Trubnikov Sergey2022-07-19parent: #6ac860e.patch.diff
in: master

1 file changed

modifiedpallets/common/src/lib.rsdiffbeforeafterboth
21//! It also provides this functionality to EVM, see [erc] and [eth] modules.21//! It also provides this functionality to EVM, see [erc] and [eth] modules.
22//!22//!
23//! ## Overview23//! ## Overview
24//! 24//!
25//! The Common pallet provides functionality for handling collections.25//! The Common pallet provides functionality for handling collections.
26//!26//!
27//! The Common pallet provides functions for:27//! The Common pallet provides functions for:
177 Self::new_with_gas_limit(id, u64::MAX)177 Self::new_with_gas_limit(id, u64::MAX)
178 }178 }
179179
180 /// Same as [`CollectionHandle::new`] but if collection not found [`Error::CollectionNotFound`] returned.180 /// Same as [`CollectionHandle::new`] but if collection not found [CollectionNotFound](Error::CollectionNotFound) returned.
181 pub fn try_get(id: CollectionId) -> Result<Self, DispatchError> {181 pub fn try_get(id: CollectionId) -> Result<Self, DispatchError> {
182 Ok(Self::new(id).ok_or(<Error<T>>::CollectionNotFound)?)182 Ok(Self::new(id).ok_or(<Error<T>>::CollectionNotFound)?)
183 }183 }