difftreelog
doc: Fix docs
in: master
2 files changed
pallets/common/src/erc.rsdiffbeforeafterboth313132use crate::{Pallet, CollectionHandle, Config, CollectionProperties};32use crate::{Pallet, CollectionHandle, Config, CollectionProperties};333334/// Events for etherium collection helper.34/// Events for ethereum collection helper.35#[derive(ToLog)]35#[derive(ToLog)]36pub enum CollectionHelpersEvents {36pub enum CollectionHelpersEvents {37 /// The collection has been created.37 /// The collection has been created.pallets/common/src/eth.rsdiffbeforeafterboth--- a/pallets/common/src/eth.rs
+++ b/pallets/common/src/eth.rs
@@ -25,7 +25,7 @@
0x17, 0xc4, 0xe6, 0x45, 0x3c, 0xc4, 0x9a, 0xaa, 0xae, 0xac, 0xa8, 0x94, 0xe6, 0xd9, 0x68, 0x3e,
];
-/// Maps the etherium address of the collection in substrate.
+/// Maps the ethereum address of the collection in substrate.
pub fn map_eth_to_id(eth: &H160) -> Option<CollectionId> {
if eth[0..16] != ETH_COLLECTION_PREFIX {
return None;
@@ -35,7 +35,7 @@
Some(CollectionId(u32::from_be_bytes(id_bytes)))
}
-/// Maps the substrate collection id in etherium.
+/// Maps the substrate collection id in ethereum.
pub fn collection_id_to_address(id: CollectionId) -> H160 {
let mut out = [0; 20];
out[0..16].copy_from_slice(Ð_COLLECTION_PREFIX);
@@ -43,7 +43,7 @@
H160(out)
}
-/// Check if the etherium address is a collection.
+/// Check if the ethereum address is a collection.
pub fn is_collection(address: &H160) -> bool {
address[0..16] == ETH_COLLECTION_PREFIX
}