Skip to content

Commit a69aa19

Browse files
committed
return terNO_AMM error when amm does not exist
1 parent 3d5e639 commit a69aa19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xrpld/app/tx/detail/AMMClawback.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ AMMClawback::preclaim(PreclaimContext const& ctx)
113113
{
114114
JLOG(ctx.j.trace())
115115
<< "AMMClawback: AMMAccount field is not an AMM account.";
116-
return tecINTERNAL;
116+
return terNO_AMM;
117117
}
118118

119119
auto const sleAMM = ctx.view.read(keylet::amm(ammID));
120120
if (!sleAMM)
121121
{
122122
JLOG(ctx.j.trace())
123123
<< "AMMClawback: can not find AMM with ammID: " << ammID;
124-
return tecINTERNAL;
124+
return terNO_AMM;
125125
}
126126

127127
STIssue const& asset = sleAMM->getFieldIssue(sfAsset);

0 commit comments

Comments
 (0)