Skip to main content

invalidate_active_fork_cache

Function invalidate_active_fork_cache 

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

Invalidates the fork DB cache after a vm.rpc call on the active fork that mutates the node directly (bypassing the cache), so later DB reads (e.g. the broadcast simulation runner) re-fetch the new value. Only well-known Anvil/Hardhat account/storage setters are handled; chain-advancing methods (e.g. eth_sendTransaction) need re-forking, not eviction.