Supported::No for featureMPTokensV1

This commit is contained in:
tequ
2026-02-20 04:47:13 +09:00
parent bfeef7fd91
commit 5678b8fbb1
4 changed files with 8 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ XRPL_FEATURE(PermissionedDomains, Supported::yes, VoteBehavior::DefaultNo
XRPL_FEATURE(DynamicNFT, Supported::yes, VoteBehavior::DefaultNo)
XRPL_FEATURE(Credentials, Supported::yes, VoteBehavior::DefaultNo)
XRPL_FEATURE(AMMClawback, Supported::yes, VoteBehavior::DefaultNo)
XRPL_FEATURE(MPTokensV1, Supported::yes, VoteBehavior::DefaultNo)
XRPL_FEATURE(MPTokensV1, Supported::no, VoteBehavior::DefaultNo)
// InvariantsV1_1 will be changes to Supported::yes when all the
// invariants expected to be included under it are complete.
XRPL_FEATURE(InvariantsV1_1, Supported::no, VoteBehavior::DefaultNo)

View File

@@ -966,7 +966,7 @@ public:
run() override
{
using namespace test::jtx;
FeatureBitset const all{supported_amendments()};
FeatureBitset const all{supported_amendments() | featureMPTokensV1};
testWithFeats(all - featureMPTokensV1);
testWithFeats(all);

View File

@@ -1317,7 +1317,7 @@ class MPToken_test : public beast::unit_test::suite
}
void
testDepositPreauth()
testDepositPreauth(FeatureBitset features)
{
testcase("DepositPreauth");
@@ -1330,7 +1330,7 @@ class MPToken_test : public beast::unit_test::suite
const char credType[] = "abcde";
{
Env env(*this);
Env env(*this, features);
env.fund(XRP(50000), diana, dpIssuer);
env.close();
@@ -1405,7 +1405,7 @@ class MPToken_test : public beast::unit_test::suite
testcase("DepositPreauth disabled featureCredentials");
{
Env env(*this, supported_amendments() - featureCredentials);
Env env(*this, features - featureCredentials);
std::string const credIdx =
"D007AE4B6E1274B4AF872588267B810C2F82716726351D1C7D38D3E5499FC6"
@@ -2308,7 +2308,7 @@ public:
run() override
{
using namespace test::jtx;
FeatureBitset const all{supported_amendments()};
FeatureBitset const all{supported_amendments() | featureMPTokensV1};
// MPTokenIssuanceCreate
testCreateValidation(all);
@@ -2332,7 +2332,7 @@ public:
// Test Direct Payment
testPayment(all);
testDepositPreauth();
testDepositPreauth(all);
// Test MPT Amount is invalid in Tx, which don't support MPT
testMPTInvalidInTx(all);

View File

@@ -3729,7 +3729,7 @@ public:
testcase("ledger_entry Request MPT");
using namespace test::jtx;
using namespace std::literals::chrono_literals;
Env env{*this};
Env env{*this, supported_amendments() | featureMPTokensV1};
Account const alice{"alice"};
Account const bob("bob");