foundry_evm_core::backend

Function commit_transaction

Source
fn commit_transaction(
    tx: &Transaction<AnyTxEnvelope>,
    env: EnvWithHandlerCfg,
    journaled_state: &mut JournaledState,
    fork: &mut Fork,
    fork_id: &ForkId,
    persistent_accounts: &HashSet<Address>,
    inspector: &mut dyn InspectorExt,
) -> Result<()>
Expand description

Executes the given transaction and commits state changes to the database and the journaled state, with an inspector.