cast::utils

Function apply_chain_and_block_specific_env_changes

pub fn apply_chain_and_block_specific_env_changes<N>(
    env: &mut Env,
    block: &<N as Network>::BlockResponse,
)
where N: Network,
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).