diff --git a/runtime/krest/src/xcm_config.rs b/runtime/krest/src/xcm_config.rs index 099fd43d..410cd104 100644 --- a/runtime/krest/src/xcm_config.rs +++ b/runtime/krest/src/xcm_config.rs @@ -197,17 +197,18 @@ impl SafeCallFilter { /// Checks whether the base (non-composite) call is allowed to be executed via `Transact` XCM /// instruction. pub fn allow_base_call(call: &RuntimeCall) -> bool { - matches!(call, + matches!( + call, RuntimeCall::System(..) | - RuntimeCall::Balances(..) | - RuntimeCall::Vesting(..) | - RuntimeCall::Assets(..) | - RuntimeCall::PolkadotXcm(..) | - RuntimeCall::Session(..) | - RuntimeCall::Multisig( - pallet_multisig::Call::approve_as_multi { .. } | - pallet_multisig::Call::cancel_as_multi { .. }, - ) + RuntimeCall::Balances(..) | + RuntimeCall::Vesting(..) | + RuntimeCall::Assets(..) | + RuntimeCall::PolkadotXcm(..) | + RuntimeCall::Session(..) | + RuntimeCall::Multisig( + pallet_multisig::Call::approve_as_multi { .. } | + pallet_multisig::Call::cancel_as_multi { .. }, + ) ) } /// Checks whether composite call is allowed to be executed via `Transact` XCM instruction. diff --git a/runtime/peaq-dev/src/xcm_config.rs b/runtime/peaq-dev/src/xcm_config.rs index 1b3f5de0..0d8e6ea9 100644 --- a/runtime/peaq-dev/src/xcm_config.rs +++ b/runtime/peaq-dev/src/xcm_config.rs @@ -197,17 +197,18 @@ impl SafeCallFilter { /// Checks whether the base (non-composite) call is allowed to be executed via `Transact` XCM /// instruction. pub fn allow_base_call(call: &RuntimeCall) -> bool { - matches!(call, + matches!( + call, RuntimeCall::System(..) | - RuntimeCall::Balances(..) | - RuntimeCall::Vesting(..) | - RuntimeCall::Assets(..) | - RuntimeCall::PolkadotXcm(..) | - RuntimeCall::Session(..) | - RuntimeCall::Multisig( - pallet_multisig::Call::approve_as_multi { .. } | - pallet_multisig::Call::cancel_as_multi { .. }, - ) + RuntimeCall::Balances(..) | + RuntimeCall::Vesting(..) | + RuntimeCall::Assets(..) | + RuntimeCall::PolkadotXcm(..) | + RuntimeCall::Session(..) | + RuntimeCall::Multisig( + pallet_multisig::Call::approve_as_multi { .. } | + pallet_multisig::Call::cancel_as_multi { .. }, + ) ) } /// Checks whether composite call is allowed to be executed via `Transact` XCM instruction. diff --git a/runtime/peaq/src/xcm_config.rs b/runtime/peaq/src/xcm_config.rs index 16a4afd3..f3ffe3f3 100644 --- a/runtime/peaq/src/xcm_config.rs +++ b/runtime/peaq/src/xcm_config.rs @@ -197,17 +197,18 @@ impl SafeCallFilter { /// Checks whether the base (non-composite) call is allowed to be executed via `Transact` XCM /// instruction. pub fn allow_base_call(call: &RuntimeCall) -> bool { - matches!(call, + matches!( + call, RuntimeCall::System(..) | - RuntimeCall::Balances(..) | - RuntimeCall::Vesting(..) | - RuntimeCall::Assets(..) | - RuntimeCall::PolkadotXcm(..) | - RuntimeCall::Session(..) | - RuntimeCall::Multisig( - pallet_multisig::Call::approve_as_multi { .. } | - pallet_multisig::Call::cancel_as_multi { .. }, - ) + RuntimeCall::Balances(..) | + RuntimeCall::Vesting(..) | + RuntimeCall::Assets(..) | + RuntimeCall::PolkadotXcm(..) | + RuntimeCall::Session(..) | + RuntimeCall::Multisig( + pallet_multisig::Call::approve_as_multi { .. } | + pallet_multisig::Call::cancel_as_multi { .. }, + ) ) } /// Checks whether composite call is allowed to be executed via `Transact` XCM instruction.