mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
fix: MPTokenIssuanceDestroy reads sponsor from erased SLE #6895
This commit is contained in:
@@ -44,11 +44,10 @@ MPTokenIssuanceDestroy::doApply()
|
||||
if (!view().dirRemove(keylet::ownerDir(account_), (*mpt)[sfOwnerNode], mpt->key(), false))
|
||||
return tefBAD_LEDGER; // LCOV_EXCL_LINE
|
||||
|
||||
view().erase(mpt);
|
||||
|
||||
auto const sponsor = getLedgerEntryReserveSponsor(view(), mpt);
|
||||
adjustOwnerCount(view(), view().peek(keylet::account(account_)), sponsor, -1, j_);
|
||||
|
||||
view().erase(mpt);
|
||||
return tesSUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user