anvil::evm

Function inject_precompiles

Source
pub fn inject_precompiles<DB: Database, I>(
    evm: &mut Evm<'_, I, DB>,
    precompiles: Vec<(Address, Precompile)>,
)
Expand description

Appends a handler register to evm that injects the given precompiles.

This will add an additional handler that extends the default precompiles with the given set of precompiles.