From 9b3f0425fea5747e02c6440971780f36fc941e0f Mon Sep 17 00:00:00 2001 From: Grigoriy Simonov Date: Fri, 23 Dec 2022 12:58:37 +0000 Subject: [PATCH] chore: fix comments --- --- a/pallets/common/src/eth.rs +++ b/pallets/common/src/eth.rs @@ -125,9 +125,9 @@ /// Ethereum representation of Optional value with CrossAddress. #[derive(Debug, Default, AbiCoder)] pub struct OptionCrossAddress { - /// TODO: field description + /// Is address set pub status: bool, - /// TODO: field description + /// Address value pub value: CrossAddress, } --- a/pallets/refungible/src/erc_token.rs +++ b/pallets/refungible/src/erc_token.rs @@ -43,6 +43,9 @@ TotalSupply, weights::WeightInfo, }; +/// Refungible token handle contains information about token's collection and id +/// +/// RefungibleTokenHandle doesn't check token's existance upon creation pub struct RefungibleTokenHandle(pub RefungibleHandle, pub TokenId); #[solidity_interface(name = ERC1633)] --- a/runtime/common/ethereum/sponsoring/refungible.rs +++ b/runtime/common/ethereum/sponsoring/refungible.rs @@ -282,6 +282,10 @@ } } +/// Module for methods of refungible token +/// +/// Existance of token should be checked before searching for sponsor +/// because RefungibleTokenHandle doesn't check token's existence upon creation mod erc20 { use super::*; -- gitstuff