Skip to content

Commit eba750f

Browse files
authored
fix delegate test failure (#6854)
1 parent 3aa5f54 commit eba750f

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

include/xrpl/protocol/detail/permissions.macro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,13 @@ GRANULAR_PERMISSION(MPTokenIssuanceUnlock, ttMPTOKEN_ISSUANCE_SET, 65548, tfUniv
8383
GRANULAR_PERMISSION(SponsorFee, ttSPONSORSHIP_SET, 65549,
8484
tfUniversal | tfSponsorshipSetRequireSignForFee | tfSponsorshipClearRequireSignForFee,
8585
({{sfFeeAmount, soeOPTIONAL},
86-
{sfMaxFee, soeOPTIONAL}}))
86+
{sfMaxFee, soeOPTIONAL},
87+
{sfSponsee, soeOPTIONAL},
88+
{sfCounterpartySponsor, soeOPTIONAL}}))
8789

8890
/** Grants the ability to set SponsorReserve. */
8991
GRANULAR_PERMISSION(SponsorReserve, ttSPONSORSHIP_SET, 65550,
9092
tfUniversal | tfSponsorshipSetRequireSignForReserve | tfSponsorshipClearRequireSignForReserve,
91-
({{sfReserveCount, soeOPTIONAL}}))
93+
({{sfReserveCount, soeOPTIONAL},
94+
{sfSponsee, soeOPTIONAL},
95+
{sfCounterpartySponsor, soeOPTIONAL}}))

src/libxrpl/tx/transactors/dex/AMMWithdraw.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -632,9 +632,6 @@ AMMWithdraw::withdraw(
632632
!isTesSuccess(ret))
633633
return ret;
634634
}
635-
// Update owner count.
636-
if (!isIssue)
637-
adjustOwnerCount(view, sleAccount, sponsorSle, 1, journal);
638635
}
639636
return tesSUCCESS;
640637
};

src/test/app/Delegate_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2250,7 +2250,7 @@ class Delegate_test : public beast::unit_test::suite
22502250
// DO NOT modify expectedDelegableCount unless all scenarios, including
22512251
// edge cases, have been fully tested and verified.
22522252
// ====================================================================
2253-
std::size_t const expectedDelegableCount = 80;
2253+
std::size_t const expectedDelegableCount = 82;
22542254

22552255
BEAST_EXPECTS(
22562256
delegableCount == expectedDelegableCount,

0 commit comments

Comments
 (0)