mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-22 23:00:55 +00:00
Merge remote-tracking branch 'ripp/develop' into spns5
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user