diff --git a/include/xrpl/ledger/View.h b/include/xrpl/ledger/View.h index f925b97b75..4a32044e5c 100644 --- a/include/xrpl/ledger/View.h +++ b/include/xrpl/ledger/View.h @@ -803,7 +803,6 @@ trustCreate( [[nodiscard]] TER removeEmptyHolding( ApplyView& view, - STTx const& tx, AccountID const& accountID, Issue const& issue, beast::Journal journal); @@ -826,7 +825,10 @@ removeEmptyHolding( { return std::visit( [&](TIss const& issue) -> TER { - return removeEmptyHolding(view, tx, accountID, issue, journal); + if constexpr (std::is_same_v) + return removeEmptyHolding(view, accountID, issue, journal); + else + return removeEmptyHolding(view, tx, accountID, issue, journal); }, asset.value()); } diff --git a/src/libxrpl/ledger/View.cpp b/src/libxrpl/ledger/View.cpp index c62b451650..fd4da70a83 100644 --- a/src/libxrpl/ledger/View.cpp +++ b/src/libxrpl/ledger/View.cpp @@ -1833,7 +1833,6 @@ trustCreate( [[nodiscard]] TER removeEmptyHolding( ApplyView& view, - STTx const& tx, AccountID const& accountID, Issue const& issue, beast::Journal journal)