From f70a5490f970a670f3a3d749885d6200a44aad94 Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 5 Feb 2025 15:09:17 +1000 Subject: [PATCH] evm-tracker comment fixes --- domains/pallets/evm-tracker/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/domains/pallets/evm-tracker/src/lib.rs b/domains/pallets/evm-tracker/src/lib.rs index ab289a41c1..212d146769 100644 --- a/domains/pallets/evm-tracker/src/lib.rs +++ b/domains/pallets/evm-tracker/src/lib.rs @@ -90,7 +90,7 @@ mod pallet { #[pallet::hooks] impl Hooks> for Pallet { fn on_finalize(_now: BlockNumberFor) { - // clear the storage since we would start with updated nonce + // clear the nonce storage, since we would start with updated nonce // during the pre_dispatch in next block let _ = AccountNonce::::clear(u32::MAX, None); } @@ -108,12 +108,12 @@ impl Pallet { AccountNonce::::set(account, Some(nonce)) } - /// Returns true if the account is allowed to create contracts. + /// Returns true if the supplied account is allowed to create contracts. pub fn is_allowed_to_create_contracts(signer: &T::AccountId) -> bool { ContractCreationAllowedBy::::get().is_allowed(signer) } - /// Returns true if the account is allowed to create contracts. + /// Returns true if any account is allowed to create contracts. pub fn is_allowed_to_create_unsigned_contracts() -> bool { ContractCreationAllowedBy::::get().is_anyone_allowed() }