foundry_evm::fork

Function environment

Source
pub async fn environment<N, T, P>(
    provider: &P,
    memory_limit: u64,
    gas_price: Option<u128>,
    override_chain_id: Option<u64>,
    pin_block: Option<u64>,
    origin: Address,
    disable_block_gas_limit: bool,
) -> Result<(Env, <N as Network>::BlockResponse), Report>
where N: Network, T: Transport + Clone, P: Provider<T, N>,
Expand description

Initializes a REVM block environment based on a forked ethereum provider.