difftreelog
doc: Fix PR
in: master
3 files changed
pallets/common/src/dispatch.rsdiffbeforeafterboth--- a/pallets/common/src/dispatch.rs
+++ b/pallets/common/src/dispatch.rs
@@ -94,6 +94,6 @@
/// Get the collection handle for the corresponding implementation.
fn into_inner(self) -> CollectionHandle<T>;
- /// Получить реализацию [CommonCollectionOperations].
+ /// Get the implementation of [CommonCollectionOperations].
fn as_dyn(&self) -> &dyn CommonCollectionOperations<T>;
}
pallets/common/src/eth.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617//! The module contains a number of functions for converting and checking etherium identifiers.17//! The module contains a number of functions for converting and checking ethereum identifiers.181819use up_data_structs::CollectionId;19use up_data_structs::CollectionId;20use sp_core::H160;20use sp_core::H160;pallets/common/src/lib.rsdiffbeforeafterboth--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -132,6 +132,9 @@
/// Collection handle contains information about collection data and id.
/// Also provides functionality to count consumed gas.
+/// CollectionHandle is used as a generic wrapper for collections of all types.
+/// It allows to perform common operations and queries on any collection type,
+/// both completely general for all, as well as their respective implementations of [CommonCollectionOperations].
#[must_use = "Should call submit_logs or save, otherwise some data will be lost for evm side"]
pub struct CollectionHandle<T: Config> {
/// Collection id