Skip to content

Commit

Permalink
cleanup config
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Dec 6, 2024
1 parent c5a7645 commit 9e56073
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,23 +207,19 @@ parameter_types! {
pub const SS58Prefix: u8 = 0;
}

/// We currently allow all calls.
pub struct BaseFilter;
impl Contains<RuntimeCall> for BaseFilter {
fn contains(call: &RuntimeCall) -> bool {
// Disallow these Snowbridge system calls.
if matches!(
call,
RuntimeCall::EthereumSystem(snowbridge_pallet_system::Call::create_agent { .. })
) || matches!(
call,
RuntimeCall::EthereumSystem(snowbridge_pallet_system::Call::create_channel { .. })
) {
log::trace!(target: "xcm::contains", "contains call create_agent or create_channel");

return false
}
log::trace!(target: "xcm::contains", "does not contain call create_agent or create_channel");

return true
}
}
Expand Down

0 comments on commit 9e56073

Please sign in to comment.