Skip to content

Commit

Permalink
Add support for ltNEGATIVE_UNL (#1474)
Browse files Browse the repository at this point in the history
Fixed #1369
  • Loading branch information
cindyyan317 authored Jun 20, 2024
1 parent bdb72f9 commit 132ec74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/util/LedgerUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static std::unordered_map<std::string, LedgerTypeAttributes> const LEDGER_TYPES_
LedgerTypeAttributes(ripple::ltXCHAIN_OWNED_CREATE_ACCOUNT_CLAIM_ID, true)},
{JS(did), LedgerTypeAttributes(ripple::ltDID)},
{JS(oracle), LedgerTypeAttributes(ripple::ltORACLE)},
{JS(nunl), LedgerTypeAttributes(ripple::ltNEGATIVE_UNL)},
}};
} // namespace impl

Expand Down
3 changes: 2 additions & 1 deletion tests/unit/util/LedgerUtilsTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ TEST(LedgerUtilsTests, LedgerObjectTypeList)
JS(xchain_owned_claim_id),
JS(xchain_owned_create_account_claim_id),
JS(did),
JS(oracle)
JS(oracle),
JS(nunl)
};
ASSERT_TRUE(std::size(typesList) == types.size());
EXPECT_TRUE(std::all_of(std::cbegin(typesList), std::cend(typesList), [&types](auto const& type) {
Expand Down

0 comments on commit 132ec74

Please sign in to comment.