Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions runtime/moonbase/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,14 @@ moonbeam_runtime_common::impl_evm_runner_precompile_or_eth_xcm!();

pub struct SafeCallFilter;
impl frame_support::traits::Contains<RuntimeCall> for SafeCallFilter {
fn contains(_call: &RuntimeCall) -> bool {
// TODO review
// This needs to be addressed at EVM level
true
fn contains(call: &RuntimeCall) -> bool {
match call {
RuntimeCall::Balances(_) => true,
RuntimeCall::Ethereum(_) => true,
RuntimeCall::EVM(_) => true,
RuntimeCall::Utility(_) => true,
_ => false,
}
}
}

Expand Down
12 changes: 8 additions & 4 deletions runtime/moonbeam/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,14 @@ parameter_types! {

pub struct SafeCallFilter;
impl frame_support::traits::Contains<RuntimeCall> for SafeCallFilter {
fn contains(_call: &RuntimeCall) -> bool {
// TODO review
// This needs to be addressed at EVM level
true
fn contains(call: &RuntimeCall) -> bool {
match call {
RuntimeCall::Balances(_) => true,
RuntimeCall::Ethereum(_) => true,
RuntimeCall::EVM(_) => true,
RuntimeCall::Utility(_) => true,
_ => false,
}
}
}

Expand Down
12 changes: 8 additions & 4 deletions runtime/moonriver/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,14 @@ parameter_types! {

pub struct SafeCallFilter;
impl frame_support::traits::Contains<RuntimeCall> for SafeCallFilter {
fn contains(_call: &RuntimeCall) -> bool {
// TODO review
// This needs to be addressed at EVM level
true
fn contains(call: &RuntimeCall) -> bool {
match call {
RuntimeCall::Balances(_) => true,
RuntimeCall::Ethereum(_) => true,
RuntimeCall::EVM(_) => true,
RuntimeCall::Utility(_) => true,
_ => false,
}
}
}

Expand Down