mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 23:30:54 +00:00
feat: Make DynamicMPT opt-in-immutable
This commit is contained in:
committed by
Ayaz Salikhov
parent
bf65e5fa7b
commit
033dca2f0e
@@ -2167,11 +2167,12 @@ class Delegate_test : public beast::unit_test::Suite
|
||||
env(delegate::set(alice, bob, {"MPTokenIssuanceLock"}));
|
||||
env.close();
|
||||
|
||||
// Field is not permitted, permitted fields for delegation is defined in
|
||||
// permissions.macro.
|
||||
// tfMPTSetCanLock is a valid MPTokenIssuanceSet flag but is not
|
||||
// covered by the MPTokenIssuanceLock granular permission, so a
|
||||
// delegate holding only that permission cannot set it.
|
||||
mpt.set(
|
||||
{.account = alice,
|
||||
.mutableFlags = 2,
|
||||
.flags = tfMPTSetCanLock,
|
||||
.delegate = bob,
|
||||
.err = terNO_DELEGATE_PERMISSION});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user