mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 22:30:57 +00:00
Change error code to tecLOCKED
This commit is contained in:
@@ -973,10 +973,10 @@ class Vault_test : public beast::unit_test::suite
|
||||
{.depositor = depositor,
|
||||
.id = keylet.key,
|
||||
.amount = asset(100)});
|
||||
env(tx, ter(tecFROZEN));
|
||||
env(tx, ter(tecLOCKED));
|
||||
|
||||
tx[sfDestination] = issuer.human();
|
||||
env(tx, ter(tecFROZEN));
|
||||
env(tx, ter(tecLOCKED));
|
||||
});
|
||||
|
||||
testCase([this](
|
||||
|
||||
@@ -118,10 +118,10 @@ VaultWithdraw::preclaim(PreclaimContext const& ctx)
|
||||
|
||||
// Cannot withdraw from a Vault an Asset frozen for the destination account
|
||||
if (isFrozen(ctx.view, dstAcct, asset))
|
||||
return tecFROZEN;
|
||||
return asset.holds<Issue>() ? tecFROZEN : tecLOCKED;
|
||||
|
||||
if (isFrozen(ctx.view, account, share))
|
||||
return tecFROZEN;
|
||||
return tecLOCKED;
|
||||
|
||||
return tesSUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user