diff --git a/src/test/app/Vault_test.cpp b/src/test/app/Vault_test.cpp index 26a47ec54a..4ead9d3454 100644 --- a/src/test/app/Vault_test.cpp +++ b/src/test/app/Vault_test.cpp @@ -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]( diff --git a/src/xrpld/app/tx/detail/VaultCreate.cpp b/src/xrpld/app/tx/detail/VaultCreate.cpp index 02d0366bab..3bfed03fa5 100644 --- a/src/xrpld/app/tx/detail/VaultCreate.cpp +++ b/src/xrpld/app/tx/detail/VaultCreate.cpp @@ -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() ? tecFROZEN : tecLOCKED; if (auto const domain = ctx.tx[~sfDomainID]) {