diff --git a/runtime/krest/src/xcm_config.rs b/runtime/krest/src/xcm_config.rs index 4e2cecde..099fd43d 100644 --- a/runtime/krest/src/xcm_config.rs +++ b/runtime/krest/src/xcm_config.rs @@ -197,7 +197,7 @@ 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 { - match call { + matches!(call, RuntimeCall::System(..) | RuntimeCall::Balances(..) | RuntimeCall::Vesting(..) | @@ -207,9 +207,8 @@ impl SafeCallFilter { RuntimeCall::Multisig( pallet_multisig::Call::approve_as_multi { .. } | pallet_multisig::Call::cancel_as_multi { .. }, - ) => true, - _ => false, - } + ) + ) } /// 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 21119fef..1b3f5de0 100644 --- a/runtime/peaq-dev/src/xcm_config.rs +++ b/runtime/peaq-dev/src/xcm_config.rs @@ -197,7 +197,7 @@ 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 { - match call { + matches!(call, RuntimeCall::System(..) | RuntimeCall::Balances(..) | RuntimeCall::Vesting(..) | @@ -207,9 +207,8 @@ impl SafeCallFilter { RuntimeCall::Multisig( pallet_multisig::Call::approve_as_multi { .. } | pallet_multisig::Call::cancel_as_multi { .. }, - ) => true, - _ => false, - } + ) + ) } /// 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 95f92b14..16a4afd3 100644 --- a/runtime/peaq/src/xcm_config.rs +++ b/runtime/peaq/src/xcm_config.rs @@ -197,7 +197,7 @@ 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 { - match call { + matches!(call, RuntimeCall::System(..) | RuntimeCall::Balances(..) | RuntimeCall::Vesting(..) | @@ -207,9 +207,8 @@ impl SafeCallFilter { RuntimeCall::Multisig( pallet_multisig::Call::approve_as_multi { .. } | pallet_multisig::Call::cancel_as_multi { .. }, - ) => true, - _ => false, - } + ) + ) } /// Checks whether composite call is allowed to be executed via `Transact` XCM instruction. ///