pub trait DispatchValidateT<AccountId, RuntimeCall> {
// Required method
fn validate_before_dispatch(
origin: &AccountId,
call: &RuntimeCall,
) -> Option<PrecompileFailure>;
}
Expand description
Dispatch validation trait.
Required Methods§
fn validate_before_dispatch( origin: &AccountId, call: &RuntimeCall, ) -> Option<PrecompileFailure>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<AccountId, RuntimeCall> DispatchValidateT<AccountId, RuntimeCall> for ()where
RuntimeCall: GetDispatchInfo,
impl<AccountId, RuntimeCall> DispatchValidateT<AccountId, RuntimeCall> for ()where
RuntimeCall: GetDispatchInfo,
The default implementation of DispatchValidateT
.