Skip to main content

ensure_tempo_precompile_active

Function ensure_tempo_precompile_active 

Source
pub(crate) async fn ensure_tempo_precompile_active<P>(
    provider: &P,
    hardfork: TempoHardfork,
    precompile: Address,
    requirement: &str,
) -> Result<()>
where P: Provider<TempoNetwork>,
Expand description

Fails early with requirement when a Tempo precompile is not active yet: a pre-fork call would succeed as a silent no-op instead of reverting. Prefers the hardfork query and falls back to checking the precompile’s code when the RPC lacks the method.