difftreelog
doc: fix PR
in: master
1 file changed
pallets/common/src/lib.rsdiffbeforeafterboth21//! 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//! ## Overview24//! 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 }179179180 /// 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 }