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”.
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.