anvil::eth::backend::mem::state

Function apply_state_override

Source
pub fn apply_state_override<D>(
    overrides: StateOverride,
    state: D,
) -> Result<CacheDB<D>, BlockchainError>
where D: DatabaseRef<Error = DatabaseError>,
Expand description

Applies the given state overrides to the state, returning a new CacheDB state