Companion for inherent checks: #8173 (#2560)

* impl is_inherent for pallets

* fix

* fix master merge: inherent is

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
Guillaume Thiolliere
2021-04-13 11:53:29 +02:00
committed by GitHub
parent d0055b1af8
commit f1f9192a38
2 changed files with 153 additions and 149 deletions
+149 -149
View File
File diff suppressed because it is too large Load Diff
@@ -257,6 +257,10 @@ impl<T: Config> ProvideInherent for Module<T> {
Some(Call::enter(inherent_data)) Some(Call::enter(inherent_data))
} }
fn is_inherent(call: &Self::Call) -> bool {
matches!(call, Call::enter(..))
}
} }
#[cfg(test)] #[cfg(test)]