foundry_evm_core::backend

Function update_state

Source
pub fn update_state<DB: Database>(
    state: &mut EvmState,
    db: &mut DB,
    persistent_accounts: Option<&HashSet<Address>>,
) -> Result<(), DB::Error>
Expand description

Helper method which updates data in the state with the data from the database. Does not change state for persistent accounts (for roll fork to transaction and transact).