mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-26 16:40:20 +00:00
refactor: Update PermissionedDomainDelete to use keylet for sle access (#6063)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user