pub(crate) fn rejected_exec(reason: Halt) -> BatchTransactionExecutionResult {
    BatchTransactionExecutionResult {
        tx_result: Box::new(VmExecutionResultAndLogs::mock(ExecutionResult::Halt {
            reason,
        })),
        compression_result: Ok(()),
        call_traces: vec![],
    }
}
Creates a `TxExecutionResult` object denoting a tx that was rejected.
core/node/state_keeper/src/testonly/test_batch_executor.rs