Skip to main content

apply_chain_and_block_specific_env_changes

Function apply_chain_and_block_specific_env_changes 

pub fn apply_chain_and_block_specific_env_changes<N, SPEC, BLOCK>(
    evm_env: &mut EvmEnv<SPEC, BLOCK>,
    block: &<N as Network>::BlockResponse,
    configs: NetworkConfigs,
)
where N: Network, SPEC: Into<SpecId> + Copy, BLOCK: FoundryBlock,
Expand description

Depending on the configured chain id and block number this should apply any specific changes

  • checks for prevrandao mixhash after merge
  • applies chain specifics: on Arbitrum block.number is the L1 block

Should be called with proper chain id (retrieved from provider if not provided), works with any FoundryBlock type.