Skip to content

Commit

Permalink
Fix clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Jul 23, 2024
1 parent 408dbf6 commit be171aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions include/xrpl/protocol/STEitherAmount.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ template <typename T>
concept ValidAssetType =
std::is_same_v<T, Currency> || std::is_same_v<T, uint192>;

template <typename T>
concept EitherAmountType = std::is_same_v<T, STEitherAmount> ||
std::is_same_v<T, std::optional<STEitherAmount>>;

class STEitherAmount : public STBase, public CountedObject<STEitherAmount>
{
private:
Expand Down Expand Up @@ -269,10 +273,8 @@ isMPT(T const& amount)
return false;
}

template <typename T>
requires(
std::is_same_v<T, STEitherAmount> ||
std::is_same_v<T, std::optional<STEitherAmount>>) bool
template <EitherAmountType T>
bool
isMPT(T const& amount)
{
if constexpr (std::is_same_v<T, STEitherAmount>)
Expand Down
3 changes: 2 additions & 1 deletion src/test/app/MPToken_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,8 @@ class MPToken_test : public beast::unit_test::suite

mptAlice.create();

env(offer(alice, mptAlice.mpt(100), XRP(100)), ter(temMPT_NOT_SUPPORTED));
env(offer(alice, mptAlice.mpt(100), XRP(100)),
ter(temMPT_NOT_SUPPORTED));
env.close();

BEAST_EXPECT(expectOffers(env, alice, 0));
Expand Down

0 comments on commit be171aa

Please sign in to comment.