Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Mar 3, 2024
1 parent f354623 commit de390b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ripple/protocol/AMMCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include <ripple/basics/Number.h>
#include <ripple/protocol/AccountID.h>
#include <ripple/protocol/Issue.h>
#include <ripple/protocol/Asset.h>
#include <ripple/protocol/TER.h>
#include <ripple/protocol/UintTypes.h>

Expand Down
6 changes: 3 additions & 3 deletions src/ripple/protocol/STPathSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ class ElementAsset
ElementAsset(uint192 const& mpt);
ElementAsset() = default;

bool
bool constexpr
isCurrency() const
{
return std::holds_alternative<Currency>(easset_);
}
bool
bool constexpr
isXRP() const
{
return isCurrency() && ripple::isXRP(currency());
}
bool
bool constexpr
isMPT() const
{
return std::holds_alternative<MPT>(easset_);
Expand Down

0 comments on commit de390b8

Please sign in to comment.