mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Rename amendment from fixDisallowIncomingV2 to fixDisallowIncomingV1_1
Co-authored-by: mvadari <8029314+mvadari@users.noreply.github.com>
This commit is contained in:
committed by
Mayukha Vadari
parent
06d1b696c1
commit
ad840518f4
@@ -16,7 +16,7 @@
|
||||
// Add new amendments to the top of this list.
|
||||
// Keep it sorted in reverse chronological order.
|
||||
|
||||
XRPL_FIX (DisallowIncomingV2, Supported::yes, VoteBehavior::DefaultNo)
|
||||
XRPL_FIX (DisallowIncomingV1_1, Supported::yes, VoteBehavior::DefaultNo)
|
||||
XRPL_FIX (ExpiredNFTokenOfferRemoval, Supported::yes, VoteBehavior::DefaultNo)
|
||||
XRPL_FIX (BatchInnerSigs, Supported::yes, VoteBehavior::DefaultNo)
|
||||
XRPL_FEATURE(LendingProtocol, Supported::yes, VoteBehavior::DefaultNo)
|
||||
|
||||
@@ -4193,9 +4193,9 @@ public:
|
||||
|
||||
using namespace jtx;
|
||||
|
||||
// Test without fixDisallowIncomingV2 amendment
|
||||
// Test without fixDisallowIncomingV1_1 amendment
|
||||
{
|
||||
Env env{*this, features - fixDisallowIncomingV2};
|
||||
Env env{*this, features - fixDisallowIncomingV1_1};
|
||||
|
||||
auto const gw = Account("gw");
|
||||
auto const alice = Account("alice");
|
||||
@@ -4231,7 +4231,7 @@ public:
|
||||
env.require(balance(bob, gwUSD(40)));
|
||||
}
|
||||
|
||||
// Test with fixDisallowIncomingV2 amendment
|
||||
// Test with fixDisallowIncomingV1_1 amendment
|
||||
{
|
||||
Env env{*this, features};
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@ CreateOffer::checkAcceptAsset(
|
||||
|
||||
// Check if the issuer has lsfDisallowIncomingTrustline set
|
||||
// If so, the account must already have a trustline to receive tokens
|
||||
if (view.rules().enabled(fixDisallowIncomingV2) &&
|
||||
if (view.rules().enabled(fixDisallowIncomingV1_1) &&
|
||||
((*issuerAccount)[sfFlags] & lsfDisallowIncomingTrustline))
|
||||
{
|
||||
if (!trustLine)
|
||||
|
||||
Reference in New Issue
Block a user