fix: Add Delegate to Ledger types (#2151)

Fix discrepancy with rippled for `account_objects` API.
This commit is contained in:
Sergey Kuznetsov
2025-05-22 13:43:52 +01:00
committed by GitHub
parent aef3119efb
commit 8aab33c18c
2 changed files with 4 additions and 1 deletions

View File

@@ -118,6 +118,7 @@ class LedgerTypes {
LedgerTypeAttribute::deletionBlockerLedgerType(JS(mpt_issuance), ripple::ltMPTOKEN_ISSUANCE),
LedgerTypeAttribute::deletionBlockerLedgerType(JS(mptoken), ripple::ltMPTOKEN),
LedgerTypeAttribute::deletionBlockerLedgerType(JS(permissioned_domain), ripple::ltPERMISSIONED_DOMAIN),
LedgerTypeAttribute::accountOwnedLedgerType(JS(delegate), ripple::ltDELEGATE),
};
public:

View File

@@ -57,7 +57,8 @@ TEST(LedgerUtilsTests, LedgerObjectTypeList)
JS(permissioned_domain),
JS(oracle),
JS(credential),
JS(nunl)
JS(nunl),
JS(delegate)
};
static_assert(std::size(kTYPES_LIST) == kTYPES.size());
@@ -91,6 +92,7 @@ TEST(LedgerUtilsTests, AccountOwnedTypeList)
JS(mpt_issuance),
JS(mptoken),
JS(permissioned_domain),
JS(delegate)
};
static_assert(std::size(kCORRECT_TYPES) == kACCOUNT_OWNED.size());