pub trait EvmProxyCallFilter: Sized + Send + Sync {
// Provided method
fn is_evm_proxy_call_allowed(
&self,
_call: &EvmSubCall,
_recipient_has_code: bool,
_gas: u64
) -> EvmResult<bool> { ... }
}
Expand description
A trait to filter if an evm subcall is allowed to be executed by a proxy account.
This trait should be implemented by the ProxyType
type configured in pallet proxy.
Provided Methods§
sourcefn is_evm_proxy_call_allowed(
&self,
_call: &EvmSubCall,
_recipient_has_code: bool,
_gas: u64
) -> EvmResult<bool>
fn is_evm_proxy_call_allowed( &self, _call: &EvmSubCall, _recipient_has_code: bool, _gas: u64 ) -> EvmResult<bool>
If returns false
, then the subcall will not be executed and the evm transaction will
revert with error message “CallFiltered”.
Object Safety§
This trait is not object safe.