Minor, use tecLOCKED when appropriate

This commit is contained in:
Bronek Kozicki
2025-05-06 12:01:23 +01:00
parent 283331b3bd
commit 8eaa9e7b96
2 changed files with 2 additions and 2 deletions

View File

@@ -1410,7 +1410,7 @@ class Vault_test : public beast::unit_test::suite
testcase("global lock blocks create");
mptt.set({.account = issuer, .flags = tfMPTLock});
auto [tx, keylet] = vault.create({.owner = owner, .asset = asset});
env(tx, ter(tecFROZEN));
env(tx, ter(tecLOCKED));
});
testCase([this](

View File

@@ -132,7 +132,7 @@ VaultCreate::preclaim(PreclaimContext const& ctx)
// Cannot create Vault for an Asset frozen for the vault owner
if (isFrozen(ctx.view, account, vaultAsset))
return tecFROZEN;
return vaultAsset.holds<Issue>() ? tecFROZEN : tecLOCKED;
if (auto const domain = ctx.tx[~sfDomainID])
{