diff --git a/evm-template/runtime/Cargo.toml b/evm-template/runtime/Cargo.toml index d189db02..9baf2982 100644 --- a/evm-template/runtime/Cargo.toml +++ b/evm-template/runtime/Cargo.toml @@ -65,7 +65,6 @@ polkadot-runtime-common = { workspace = true } xcm = { workspace = true } xcm-builder = { workspace = true } xcm-executor = { workspace = true } -xcm-simulator = { workspace = true } # Cumulus assets-common = { workspace = true } @@ -109,6 +108,7 @@ xcm-primitives = { workspace = true } [dev-dependencies] sp-io = { workspace = true } +xcm-simulator = { workspace = true } [build-dependencies] substrate-wasm-builder = { workspace = true } diff --git a/evm-template/runtime/tests/xcm_mock/mod.rs b/evm-template/runtime/tests/xcm_mock/mod.rs index d22beca5..f8787f65 100644 --- a/evm-template/runtime/tests/xcm_mock/mod.rs +++ b/evm-template/runtime/tests/xcm_mock/mod.rs @@ -48,7 +48,7 @@ pub fn mock_relay_config() -> HostConfiguration { hrmp_max_parachain_inbound_channels: 10, hrmp_max_parachain_outbound_channels: 10, hrmp_channel_max_message_size: u32::MAX, - // Changed to avoid aritmetic errors within hrmp_close + // Changed to avoid arithmetic errors within hrmp_close max_downward_message_size: 100_000u32, ..Default::default() } diff --git a/evm-template/runtime/tests/xcm_mock/parachain.rs b/evm-template/runtime/tests/xcm_mock/parachain.rs index eacf224c..6816de15 100644 --- a/evm-template/runtime/tests/xcm_mock/parachain.rs +++ b/evm-template/runtime/tests/xcm_mock/parachain.rs @@ -253,7 +253,7 @@ pub type XcmBarrier = ( AllowKnownQueryResponses, WithComputedOrigin< ( - // If the message is one that immediately attemps to pay for execution, then allow it. + // If the message is one that immediately attempts to pay for execution, then allow it. AllowTopLevelPaidExecutionFrom, // Subscriptions for version tracking are OK. AllowSubscriptionsFrom, @@ -680,7 +680,7 @@ parameter_types! { impl pallet_xcm::Config for Runtime { type AdminOrigin = frame_system::EnsureRoot; - // We use a custom one to test runtime ugprades + // We use a custom one to test runtime upgrades type AdvertisedXcmVersion = XcmVersioner; type Currency = Balances; type CurrencyMatcher = IsConcrete; @@ -1001,7 +1001,7 @@ impl pallet_proxy::Config for Runtime { pub struct EthereumXcmEnsureProxy; impl xcm_primitives::EnsureProxy for EthereumXcmEnsureProxy { fn ensure_ok(delegator: AccountId, delegatee: AccountId) -> Result<(), &'static str> { - // The EVM implicitely contains an Any proxy, so we only allow for "Any" proxies + // The EVM implicitly contains an Any proxy, so we only allow for "Any" proxies let def: pallet_proxy::ProxyDefinition = pallet_proxy::Pallet::::find_proxy( &delegator, diff --git a/evm-template/runtime/tests/xcm_mock/relay_chain.rs b/evm-template/runtime/tests/xcm_mock/relay_chain.rs index 0be3f079..fa3265a5 100644 --- a/evm-template/runtime/tests/xcm_mock/relay_chain.rs +++ b/evm-template/runtime/tests/xcm_mock/relay_chain.rs @@ -142,7 +142,7 @@ pub type XcmBarrier = ( AllowKnownQueryResponses, WithComputedOrigin< ( - // If the message is one that immediately attemps to pay for execution, then allow it. + // If the message is one that immediately attempts to pay for execution, then allow it. AllowTopLevelPaidExecutionFrom, // Subscriptions for version tracking are OK. AllowSubscriptionsFrom,