pallet_evm_precompile_dispatch

Trait DispatchValidateT

Source
pub trait DispatchValidateT<AccountId, RuntimeCall> {
    // Required method
    fn validate_before_dispatch(
        origin: &AccountId,
        call: &RuntimeCall,
    ) -> Option<PrecompileFailure>;
}
Expand description

Dispatch validation trait.

Required Methods§

Source

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,

The default implementation of DispatchValidateT.

Source§

fn validate_before_dispatch( _origin: &AccountId, call: &RuntimeCall, ) -> Option<PrecompileFailure>

Implementors§