refactor: Update PermissionedDomainDelete to use keylet for sle access (#6063)

This commit is contained in:
tequ
2026-03-04 12:11:58 +09:00
committed by Ed Hennis
parent 846ae8900a
commit 3519074575

View File

@@ -38,7 +38,7 @@ TER
PermissionedDomainDelete::preclaim(PreclaimContext const& ctx)
{
auto const domain = ctx.tx.getFieldH256(sfDomainID);
auto const sleDomain = ctx.view.read({ltPERMISSIONED_DOMAIN, domain});
auto const sleDomain = ctx.view.read(keylet::permissionedDomain(domain));
if (!sleDomain)
return tecNO_ENTRY;
@@ -61,7 +61,7 @@ PermissionedDomainDelete::doApply()
"ripple::PermissionedDomainDelete::doApply : required field present");
auto const slePd =
view().peek({ltPERMISSIONED_DOMAIN, ctx_.tx.at(sfDomainID)});
view().peek(keylet::permissionedDomain(ctx_.tx.at(sfDomainID)));
auto const page = (*slePd)[sfOwnerNode];
if (!view().dirRemove(keylet::ownerDir(account_), page, slePd->key(), true))