Skip to content

Commit

Permalink
fix std leak
Browse files Browse the repository at this point in the history
  • Loading branch information
4meta5 committed Oct 28, 2024
1 parent c7d9d79 commit c046c6f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion evm-template/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion evm-template/runtime/tests/xcm_mock/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub fn mock_relay_config() -> HostConfiguration<relay_chain::BlockNumber> {
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()
}
Expand Down
6 changes: 3 additions & 3 deletions evm-template/runtime/tests/xcm_mock/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ pub type XcmBarrier = (
AllowKnownQueryResponses<PolkadotXcm>,
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<Everything>,
// Subscriptions for version tracking are OK.
AllowSubscriptionsFrom<Everything>,
Expand Down Expand Up @@ -680,7 +680,7 @@ parameter_types! {

impl pallet_xcm::Config for Runtime {
type AdminOrigin = frame_system::EnsureRoot<AccountId>;
// 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<MatcherLocation>;
Expand Down Expand Up @@ -1001,7 +1001,7 @@ impl pallet_proxy::Config for Runtime {
pub struct EthereumXcmEnsureProxy;
impl xcm_primitives::EnsureProxy<AccountId> 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<AccountId, ProxyType, BlockNumber> =
pallet_proxy::Pallet::<Runtime>::find_proxy(
&delegator,
Expand Down
2 changes: 1 addition & 1 deletion evm-template/runtime/tests/xcm_mock/relay_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub type XcmBarrier = (
AllowKnownQueryResponses<XcmPallet>,
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<Everything>,
// Subscriptions for version tracking are OK.
AllowSubscriptionsFrom<Everything>,
Expand Down

0 comments on commit c046c6f

Please sign in to comment.