From e50f8f591b9b3e4d307d70482d43e309a688c236 Mon Sep 17 00:00:00 2001 From: JCW Date: Thu, 12 Mar 2026 14:07:07 +0000 Subject: [PATCH] Fix test failures Signed-off-by: JCW --- include/xrpl/ledger/TrustLine.h | 6 +++--- src/libxrpl/ledger/TrustLine.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/xrpl/ledger/TrustLine.h b/include/xrpl/ledger/TrustLine.h index 6bab7f5475..27a42327b6 100644 --- a/include/xrpl/ledger/TrustLine.h +++ b/include/xrpl/ledger/TrustLine.h @@ -78,21 +78,21 @@ public: * @brief Returns the state map key for the ledger entry. * @return The key (hash) of the RippleState entry. */ - uint256 const& + uint256 key() const; /** * @brief Get our account ID. * @return The account ID from whose perspective this line is viewed. */ - AccountID const& + AccountID getAccountID() const; /** * @brief Get the peer's account ID. * @return The account ID of the other party on this trust line. */ - AccountID const& + AccountID getAccountIDPeer() const; /** diff --git a/src/libxrpl/ledger/TrustLine.cpp b/src/libxrpl/ledger/TrustLine.cpp index 4168f44a96..1abf207018 100644 --- a/src/libxrpl/ledger/TrustLine.cpp +++ b/src/libxrpl/ledger/TrustLine.cpp @@ -40,20 +40,20 @@ TrustLine::getItems(AccountID const& accountID, ReadView const& view, LineDirect return items; } -uint256 const& +uint256 TrustLine::key() const { return rippleState_.getSle()->key(); } -AccountID const& +AccountID TrustLine::getAccountID() const { return viewLowest_ ? rippleState_.getLowLimit().getIssuer() : rippleState_.getHighLimit().getIssuer(); } -AccountID const& +AccountID TrustLine::getAccountIDPeer() const { return !viewLowest_ ? rippleState_.getLowLimit().getIssuer()