Skip to content

Commit

Permalink
Remove unnecessary and wrong comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sea212 committed Jul 17, 2023
1 parent 41e1b86 commit 7e82892
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions runtime/battery-station/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,11 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
#[derive(scale_info::TypeInfo)]
pub struct ContractsCallfilter;

// Currently disables Court, Rikiddo and creation of markets using Court or SimpleDisputes
// dispute mechanism.
impl Contains<RuntimeCall> for ContractsCallfilter {
fn contains(runtime_call: &RuntimeCall) -> bool {
#[allow(clippy::match_like_matches_macro)]
match runtime_call {
RuntimeCall::AssetManager(transfer { .. }) => true,
// Membership is managed by the respective Membership instance
RuntimeCall::PredictionMarkets(inner_call) => {
match inner_call {
buy_complete_set { .. } => true,
Expand Down Expand Up @@ -154,7 +151,6 @@ impl Contains<RuntimeCall> for ContractsCallfilter {
_ => false,
}
}
// See "balance.set_balance"
RuntimeCall::Swaps(inner_call) => match inner_call {
pool_exit { .. } => true,
pool_exit_subsidy { .. } => true,
Expand Down

0 comments on commit 7e82892

Please sign in to comment.