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()