Supported::No for featureMPTokensV1

This commit is contained in:
tequ
2025-07-01 15:22:52 +09:00
parent 534ed875a2
commit 85a1eb5dba
4 changed files with 8 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ XRPL_FEATURE(PermissionedDomains, Supported::yes, VoteBehavior::DefaultNo
XRPL_FEATURE(DynamicNFT, Supported::yes, VoteBehavior::DefaultNo) XRPL_FEATURE(DynamicNFT, Supported::yes, VoteBehavior::DefaultNo)
XRPL_FEATURE(Credentials, Supported::yes, VoteBehavior::DefaultNo) XRPL_FEATURE(Credentials, Supported::yes, VoteBehavior::DefaultNo)
XRPL_FEATURE(AMMClawback, 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 // InvariantsV1_1 will be changes to Supported::yes when all the
// invariants expected to be included under it are complete. // invariants expected to be included under it are complete.
XRPL_FEATURE(InvariantsV1_1, Supported::no, VoteBehavior::DefaultNo) XRPL_FEATURE(InvariantsV1_1, Supported::no, VoteBehavior::DefaultNo)

View File

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

View File

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

View File

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