pub trait IsActivePrecompile {
// Required method
fn is_active_precompile(
&self,
address: H160,
gas: u64
) -> IsPrecompileResult;
}
Expand description
Allows to know if a precompile is active or not. This allows to detect deactivated precompile, that are still considered precompiles by the EVM but that will always revert when called.
Required Methods§
sourcefn is_active_precompile(&self, address: H160, gas: u64) -> IsPrecompileResult
fn is_active_precompile(&self, address: H160, gas: u64) -> IsPrecompileResult
Is the provided address an active precompile, a precompile that has not be deactivated. Note that a deactivated precompile is still considered a precompile for the EVM, but it will always revert when called.