fn sync_chain_id_override<FEN: FoundryEvmNetwork>(
ccx: &mut CheatsCtxt<'_, '_, FEN>,
fork_id: Option<LocalForkId>,
)Expand description
Makes CHAINID on the fork fork_id just switched to or rolled read the fork’s chain ID at
once, replacing an earlier vm.chainId.
The switch or roll defers the chain ID to the next transaction, and CHAINID reads the
transaction’s until then. ccx.evm can be a frame EVM that already runs the pending chain ID,
so the pending chain ID is recorded whenever there is one.