From 602c2c83cce9061b32bed4f64dd6a0a41ad7e794 Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Mon, 29 Dec 2025 14:45:55 +0400 Subject: [PATCH 1/2] Update typos config --- typos.toml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/typos.toml b/typos.toml index a03253f79..1fd49278b 100644 --- a/typos.toml +++ b/typos.toml @@ -1,10 +1,15 @@ [default] extend-ignore-identifiers-re = [".+HDNode.*"] +extend-ignore-re = ["dyn-clonable"] [default.extend-identifiers] -# Substrate choices we can't / won't change. -"Applyable" = "Applyable" -"assert_applyable_validate_all_transaction_sources" = "assert_applyable_validate_all_transaction_sources" -"prepare_applyable_data" = "prepare_applyable_data" # DEFLATE "flate2" = "flate2" + +[default.extend-words] +"inherents" = "inherents" + +"dyn-clonable" = "dyn-clonable" + +# Substrate choices we can't / won't change. +"Applyable" = "Applyable" From 67f9d79a22ca9711c6d2baa2c2095e9f1f50d763 Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Mon, 29 Dec 2025 14:46:43 +0400 Subject: [PATCH 2/2] Fix the typos --- crates/crypto-utils-evm/src/lib.rs | 4 ++-- crates/humanode-peer/src/configuration.rs | 2 +- .../src/lib.rs | 6 +++--- crates/pallet-pot/src/lib.rs | 2 +- crates/robonode-server/src/logic/tests.rs | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/crypto-utils-evm/src/lib.rs b/crates/crypto-utils-evm/src/lib.rs index 600f7599d..244e82d18 100644 --- a/crates/crypto-utils-evm/src/lib.rs +++ b/crates/crypto-utils-evm/src/lib.rs @@ -85,7 +85,7 @@ impl KeyData { }) } - /// Construct the key info from the BIP39 mnemonic using BIP44 convensions. + /// Construct the key info from the BIP39 mnemonic using BIP44 conventions. pub fn from_mnemonic_bip44( mnemonic: &bip39::Mnemonic, password: &str, @@ -99,7 +99,7 @@ impl KeyData { .map_err(FromMnemonicBip44Error::FromMnemonicBip39) } - /// Construct the key info from the BIP39 mnemonic phrase (in English) using BIP44 convensions. + /// Construct the key info from the BIP39 mnemonic phrase (in English) using BIP44 conventions. /// If you need other language - use [`Self::from_mnemonic_bip44`]. pub fn from_phrase_bip44( phrase: &str, diff --git a/crates/humanode-peer/src/configuration.rs b/crates/humanode-peer/src/configuration.rs index f6bf449a1..9fa995252 100644 --- a/crates/humanode-peer/src/configuration.rs +++ b/crates/humanode-peer/src/configuration.rs @@ -115,7 +115,7 @@ pub struct FrontierBackend { pub frontier_sql_backend_cache_size: u64, } -/// Avalailable frontier backend types. +/// Available frontier backend types. #[derive(Default, Debug, Copy, Clone, clap::ValueEnum)] pub enum FrontierBackendType { /// Either `RocksDb` or `ParityDb` as per inherited from the global backend settings. diff --git a/crates/pallet-balanced-currency-swap-bridges-initializer/src/lib.rs b/crates/pallet-balanced-currency-swap-bridges-initializer/src/lib.rs index 64c1ed7cb..241afe4ed 100644 --- a/crates/pallet-balanced-currency-swap-bridges-initializer/src/lib.rs +++ b/crates/pallet-balanced-currency-swap-bridges-initializer/src/lib.rs @@ -178,7 +178,7 @@ impl Pallet { with_storage_layer(move || { let (native_evm_bridge_minimum_balance, evm_native_bridge_minimum_balance) = - Self::bridges_miminum_balances(); + Self::bridges_minimum_balances(); let evm_total_issuance = T::EvmCurrency::total_issuance(); let evm_bridge_balance = T::EvmCurrency::total_balance(&T::EvmNativeBridgePot::get()); @@ -229,7 +229,7 @@ impl Pallet { } /// A helper function to calculate bridges minimum balances be proportionally equal. - fn bridges_miminum_balances() -> (NativeBalanceOf, EvmBalanceOf) { + fn bridges_minimum_balances() -> (NativeBalanceOf, EvmBalanceOf) { let native_ed = T::NativeCurrency::minimum_balance(); let evm_ed = T::EvmCurrency::minimum_balance(); @@ -389,7 +389,7 @@ impl Pallet { /// Verify currencies balanced requirements. pub fn is_balanced() -> Result { let (native_evm_bridge_minimum_balance, evm_native_bridge_minimum_balance) = - Self::bridges_miminum_balances(); + Self::bridges_minimum_balances(); let is_balanced_native_evm = swap_reserved_balance::( diff --git a/crates/pallet-pot/src/lib.rs b/crates/pallet-pot/src/lib.rs index 92adbcb92..7dd8b05b1 100644 --- a/crates/pallet-pot/src/lib.rs +++ b/crates/pallet-pot/src/lib.rs @@ -40,7 +40,7 @@ pub enum InitialState { Unchecked, /// The account will be guaranteed to exist at genesis. Initialized, - /// The account will be guaranteed to be initilaize with the given balance at genesis. + /// The account will be guaranteed to be initialize with the given balance at genesis. Balance { /// The balance to set for the account. balance: Balance, diff --git a/crates/robonode-server/src/logic/tests.rs b/crates/robonode-server/src/logic/tests.rs index 4bd8ac2ce..9a6bdf0fc 100644 --- a/crates/robonode-server/src/logic/tests.rs +++ b/crates/robonode-server/src/logic/tests.rs @@ -139,8 +139,8 @@ async fn setup() -> ( trace!(message = "facetec server reset", ?res); - for public_key_to_clenaup in public_keys_to_cleanup() { - let public_key_hex = hex::encode(public_key_to_clenaup); + for public_key_to_cleanup in public_keys_to_cleanup() { + let public_key_hex = hex::encode(public_key_to_cleanup); let res = facetec .db_delete(ft::db_delete::Request { group_name: DB_GROUP_NAME,