Skip to main content

merge_untracked_nested_changes

Function merge_untracked_nested_changes 

Source
pub fn merge_untracked_nested_changes<T: EvmTypesHost>(
    state: &mut State<'_>,
    executed: &ExecutedTx<'_, '_, T>,
) -> DbResult<(Vec<PersistentWrite>, Vec<PersistentWrite>)>
Expand description

Applies a nested transaction’s changes to the running transaction’s state as journaled writes and returns them as PersistentWrites, for the caller to replay when an enclosing call reverts, such as for broadcastRawTransaction.

Also returns the changes accepted into state instead, which no revert undoes, for the caller to replay only when it discards the running state.