Add support for ltNEGATIVE_UNL (#1474)

Fixed #1369
This commit is contained in:
cyan317
2024-06-20 11:19:42 +01:00
committed by GitHub
parent bdb72f91a2
commit 132ec743e1
2 changed files with 3 additions and 1 deletions

View File

@@ -68,6 +68,7 @@ static std::unordered_map<std::string, LedgerTypeAttributes> const LEDGER_TYPES_
LedgerTypeAttributes(ripple::ltXCHAIN_OWNED_CREATE_ACCOUNT_CLAIM_ID, true)}, LedgerTypeAttributes(ripple::ltXCHAIN_OWNED_CREATE_ACCOUNT_CLAIM_ID, true)},
{JS(did), LedgerTypeAttributes(ripple::ltDID)}, {JS(did), LedgerTypeAttributes(ripple::ltDID)},
{JS(oracle), LedgerTypeAttributes(ripple::ltORACLE)}, {JS(oracle), LedgerTypeAttributes(ripple::ltORACLE)},
{JS(nunl), LedgerTypeAttributes(ripple::ltNEGATIVE_UNL)},
}}; }};
} // namespace impl } // namespace impl

View File

@@ -51,7 +51,8 @@ TEST(LedgerUtilsTests, LedgerObjectTypeList)
JS(xchain_owned_claim_id), JS(xchain_owned_claim_id),
JS(xchain_owned_create_account_claim_id), JS(xchain_owned_create_account_claim_id),
JS(did), JS(did),
JS(oracle) JS(oracle),
JS(nunl)
}; };
ASSERT_TRUE(std::size(typesList) == types.size()); ASSERT_TRUE(std::size(typesList) == types.size());
EXPECT_TRUE(std::all_of(std::cbegin(typesList), std::cend(typesList), [&types](auto const& type) { EXPECT_TRUE(std::all_of(std::cbegin(typesList), std::cend(typesList), [&types](auto const& type) {