feat: Make DynamicMPT opt-in-immutable

This commit is contained in:
yinyiqian1
2026-07-17 14:02:35 -04:00
committed by Ayaz Salikhov
parent bf65e5fa7b
commit 033dca2f0e
23 changed files with 619 additions and 628 deletions

View File

@@ -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});