Skip to content
Snippets Groups Projects
Commit 522fe7dc authored by Éloïs's avatar Éloïs
Browse files

fix: BaseCallFilter is inversed

parent 925d5cd5
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,7 @@ pub type Executive = frame_executive::Executive<
pub struct BaseCallFilter;
impl frame_support::traits::Contains<Call> for BaseCallFilter {
fn contains(call: &Call) -> bool {
matches!(call, Call::Membership(_) | Call::Session(_))
!matches!(call, Call::Membership(_) | Call::Session(_))
}
}
......
......@@ -135,7 +135,7 @@ pub type Executive = frame_executive::Executive<
pub struct BaseCallFilter;
impl frame_support::traits::Contains<Call> for BaseCallFilter {
fn contains(call: &Call) -> bool {
matches!(call, Call::Membership(_))
!matches!(call, Call::Membership(_))
}
}
......
......@@ -143,7 +143,7 @@ pub type Executive = frame_executive::Executive<
pub struct BaseCallFilter;
impl frame_support::traits::Contains<Call> for BaseCallFilter {
fn contains(call: &Call) -> bool {
matches!(call, Call::Membership(_) | Call::Session(_))
!matches!(call, Call::Membership(_) | Call::Session(_))
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment