pub(crate) fn state_override(
remote: &MemDb,
local: &Cache,
) -> Option<StateOverride>Expand description
Returns the local state of a fork context that differs from remote, the state the fork loaded
from its endpoint, as overrides for a simulation there, with a stub for the cheatcode contract.
Such state is the test contract and balances set with cheatcodes.
Returns None when nothing differs, so endpoints without override support still simulate, or
when the state is larger than MAX_OVERRIDE_BYTES.