mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Minor, use tecLOCKED when appropriate
This commit is contained in:
@@ -1410,7 +1410,7 @@ class Vault_test : public beast::unit_test::suite
|
|||||||
testcase("global lock blocks create");
|
testcase("global lock blocks create");
|
||||||
mptt.set({.account = issuer, .flags = tfMPTLock});
|
mptt.set({.account = issuer, .flags = tfMPTLock});
|
||||||
auto [tx, keylet] = vault.create({.owner = owner, .asset = asset});
|
auto [tx, keylet] = vault.create({.owner = owner, .asset = asset});
|
||||||
env(tx, ter(tecFROZEN));
|
env(tx, ter(tecLOCKED));
|
||||||
});
|
});
|
||||||
|
|
||||||
testCase([this](
|
testCase([this](
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ VaultCreate::preclaim(PreclaimContext const& ctx)
|
|||||||
|
|
||||||
// Cannot create Vault for an Asset frozen for the vault owner
|
// Cannot create Vault for an Asset frozen for the vault owner
|
||||||
if (isFrozen(ctx.view, account, vaultAsset))
|
if (isFrozen(ctx.view, account, vaultAsset))
|
||||||
return tecFROZEN;
|
return vaultAsset.holds<Issue>() ? tecFROZEN : tecLOCKED;
|
||||||
|
|
||||||
if (auto const domain = ctx.tx[~sfDomainID])
|
if (auto const domain = ctx.tx[~sfDomainID])
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user