Reduce the number of macros used for SignedExtensions

Reduce the number of macros used for SignedExtensions

Signed-off-by: Serban Iorga <serban@parity.io>
This commit is contained in:
Serban Iorga authored and Bastian Köcher committed 2024-04-10 10:28:37 +02:00
1 parent 057fd6cab2
commit 5d9bd1d0b5
7 files changed
+403 -406

No files matched your search

+7
View File
@@ -35,6 +35,7 @@ pub use chain::{
};
pub use frame_support::storage::storage_prefix as storage_value_final_key;
use num_traits::{CheckedSub, One};
use sp_runtime::transaction_validity::TransactionValidity;
pub use storage_proof::{
Error as StorageProofError, ProofSize as StorageProofSize, StorageProofChecker,
};
@@ -400,6 +401,12 @@ pub trait OwnedBridgeModule<T: frame_system::Config> {
}
}
/// A trait for querying whether a runtime call is valid.
pub trait FilterCall<Call> {
/// Checks if a runtime call is valid.
fn validate(call: &Call) -> TransactionValidity;
}
#[cfg(test)]
mod tests {
use super::*;