Skip to content
Snippets Groups Projects
Unverified Commit 4f71771f authored by bgallois's avatar bgallois
Browse files

fix filter

parent 69b7f176
No related branches found
No related tags found
1 merge request!278Fix #235 allow remark in prod with a limit on extrinsic size for free transaction
Pipeline #38106 passed
...@@ -173,7 +173,6 @@ mod benches { ...@@ -173,7 +173,6 @@ mod benches {
pub struct BaseCallFilter; pub struct BaseCallFilter;
impl Contains<RuntimeCall> for BaseCallFilter { impl Contains<RuntimeCall> for BaseCallFilter {
#[cfg(not(feature = "runtime-benchmarks"))]
fn contains(call: &RuntimeCall) -> bool { fn contains(call: &RuntimeCall) -> bool {
!matches!( !matches!(
call, call,
...@@ -181,11 +180,6 @@ impl Contains<RuntimeCall> for BaseCallFilter { ...@@ -181,11 +180,6 @@ impl Contains<RuntimeCall> for BaseCallFilter {
| RuntimeCall::Session(_) | RuntimeCall::Session(_)
) )
} }
#[cfg(feature = "runtime-benchmarks")]
fn contains(call: &RuntimeCall) -> bool {
!matches!(call, RuntimeCall::Session(_))
}
} }
/// The type used to represent the kinds of proxying allowed. /// The type used to represent the kinds of proxying allowed.
......
...@@ -175,7 +175,6 @@ mod benches { ...@@ -175,7 +175,6 @@ mod benches {
pub struct BaseCallFilter; pub struct BaseCallFilter;
impl Contains<RuntimeCall> for BaseCallFilter { impl Contains<RuntimeCall> for BaseCallFilter {
#[cfg(not(feature = "runtime-benchmarks"))]
fn contains(call: &RuntimeCall) -> bool { fn contains(call: &RuntimeCall) -> bool {
!matches!( !matches!(
call, call,
...@@ -183,11 +182,6 @@ impl Contains<RuntimeCall> for BaseCallFilter { ...@@ -183,11 +182,6 @@ impl Contains<RuntimeCall> for BaseCallFilter {
| RuntimeCall::Session(_) | RuntimeCall::Session(_)
) )
} }
#[cfg(feature = "runtime-benchmarks")]
fn contains(call: &RuntimeCall) -> bool {
!matches!(call, RuntimeCall::Session(_))
}
} }
/// The type used to represent the kinds of proxying allowed. /// The type used to represent the kinds of proxying allowed.
......
...@@ -173,7 +173,6 @@ mod benches { ...@@ -173,7 +173,6 @@ mod benches {
pub struct BaseCallFilter; pub struct BaseCallFilter;
impl Contains<RuntimeCall> for BaseCallFilter { impl Contains<RuntimeCall> for BaseCallFilter {
#[cfg(not(feature = "runtime-benchmarks"))]
fn contains(call: &RuntimeCall) -> bool { fn contains(call: &RuntimeCall) -> bool {
!matches!( !matches!(
call, call,
...@@ -181,11 +180,6 @@ impl Contains<RuntimeCall> for BaseCallFilter { ...@@ -181,11 +180,6 @@ impl Contains<RuntimeCall> for BaseCallFilter {
| RuntimeCall::Session(_) | RuntimeCall::Session(_)
) )
} }
#[cfg(feature = "runtime-benchmarks")]
fn contains(call: &RuntimeCall) -> bool {
!matches!(call, RuntimeCall::Session(_))
}
} }
/// The type used to represent the kinds of proxying allowed. /// The type used to represent the kinds of proxying allowed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment