Skip to main content

refresh_active_fork_state

Function refresh_active_fork_state 

Source
fn refresh_active_fork_state<FEN: FoundryEvmNetwork>(
    ccx: &mut CheatsCtxt<'_, '_, FEN>,
    method: &str,
    params: &str,
) -> Result<()>
Expand description

Refreshes cached fork and journal state after a vm.rpc call on the active fork that mutates the node directly. Only well-known Anvil/Hardhat account/storage setters are handled; chain-advancing methods (e.g. eth_sendTransaction) need re-forking, not synchronization.