pub(super) async fn create_batch_executor_with_init_transactions(
        &mut self,
        storage_type: StorageType,
        transactions: &[Transaction],
    ) -> Box<dyn BatchExecutor<OwnedStorage>> {
        let mut executor = self.create_batch_executor(storage_type).await;

        for txn in transactions {
            let res = executor.execute_tx(txn.clone()).await.unwrap();
            assert_matches!(res.tx_result.result, ExecutionResult::Success { .. });
        }

        executor
    }
Extension of `create_batch_executor` that allows us to run some initial transactions to bootstrap the state.
core/node/state_keeper/src/executor/tests/tester.rs