Merge remote-tracking branch 'ripp/develop' into spns5

This commit is contained in:
Oleksandr
2026-05-20 17:07:06 -04:00
29 changed files with 1587 additions and 152 deletions

View File

@@ -30,6 +30,7 @@
#include <xrpl/basics/base_uint.h>
#include <xrpl/basics/strHex.h>
#include <xrpl/beast/unit_test/suite.h>
#include <xrpl/json/json_value.h>
#include <xrpl/json/to_string.h>
#include <xrpl/ledger/ApplyView.h>
#include <xrpl/ledger/ApplyViewImpl.h>
@@ -191,6 +192,22 @@ class MPToken_test : public beast::unit_test::Suite
.metadata = "test",
.err = temMALFORMED});
}
// sfReferenceHolding is populated internally only by VaultCreate.
// A user-submitted MPTokenIssuanceCreate carrying the field must be
// rejected at preflight under fixCleanup3_2_0.
if (features[fixCleanup3_2_0])
{
Env env{*this, features};
env.fund(XRP(1'000), alice);
env.close();
json::Value jv;
jv[sfAccount] = alice.human();
jv[sfTransactionType] = jss::MPTokenIssuanceCreate;
jv[sfReferenceHolding] = to_string(uint256{1});
env(jv, Ter(temMALFORMED));
}
}
void