Skip to main content

assert_transaction_executor_error

Macro assert_transaction_executor_error 

Source
macro_rules! assert_transaction_executor_error {
    ($execution_result:expr, matches $pat:pat $(if $guard:expr)? $(,)?) => { ... };
    ($execution_result:expr, $expected:expr $(,)?) => { ... };
}
Expand description

Same as assert_execution_error!, but for TransactionExecutorError. The matches and $expected arms unwrap TransactionProgramExecutionFailed(_) and match against the inner ExecutionError.