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>

Object Safety§

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§