diff --git a/src/libxrpl/ledger/helpers/RippleStateHelpers.cpp b/src/libxrpl/ledger/helpers/RippleStateHelpers.cpp index 12bd913a29..8ad31d39a1 100644 --- a/src/libxrpl/ledger/helpers/RippleStateHelpers.cpp +++ b/src/libxrpl/ledger/helpers/RippleStateHelpers.cpp @@ -593,8 +593,12 @@ requireAuth(ReadView const& view, Issue const& issue, AccountID const& account, // can never authorize its own line and no transaction offers the // issuer a chance to do it either. Treat a line it already owns as // authorized, the same way MPT does. + // + // Function-local rather than namespace scope: the SFields it points + // at live in another translation unit. + static std::set const kPseudoAccountFilter{&sfVaultID, &sfLoanBrokerID}; if (view.rules().enabled(fixCleanup3_4_0) && - isPseudoAccount(view, account, {&sfVaultID, &sfLoanBrokerID})) + isPseudoAccount(view, account, kPseudoAccountFilter)) return tesSUCCESS; return TER{tecNO_AUTH};