xrpld
Loading...
Searching...
No Matches
xrpl::test::TxResult Struct Reference

Result of a transaction submission in TxTest. More...

#include <TxTest.h>

Collaboration diagram for xrpl::test::TxResult:

Public Attributes

TER ter
 The transaction engine result code.
bool applied
 Whether the transaction was applied to the ledger.
std::optional< TxMetametadata
 Transaction metadata, if available.
std::shared_ptr< STTx const > tx
 Pointer to the submitted transaction.

Detailed Description

Result of a transaction submission in TxTest.

Contains the TER code, whether the transaction was applied, optional metadata, and a reference to the submitted transaction. Use standard gtest macros (EXPECT_EQ, EXPECT_TRUE, etc.) to verify results.

Definition at line 152 of file TxTest.h.

Member Data Documentation

◆ ter

TER xrpl::test::TxResult::ter

The transaction engine result code.

Definition at line 154 of file TxTest.h.

◆ applied

bool xrpl::test::TxResult::applied

Whether the transaction was applied to the ledger.

Definition at line 155 of file TxTest.h.

◆ metadata

std::optional<TxMeta> xrpl::test::TxResult::metadata

Transaction metadata, if available.

Definition at line 156 of file TxTest.h.

◆ tx

std::shared_ptr<STTx const> xrpl::test::TxResult::tx

Pointer to the submitted transaction.

Definition at line 157 of file TxTest.h.