mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 18:45:55 +00:00
update amount guard
This commit is contained in:
@@ -60,7 +60,8 @@ URIToken::preflight(PreflightContext const& ctx)
|
|||||||
return temBAD_CURRENCY;
|
return temBAD_CURRENCY;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (amt == beast::zero && !ctx.tx.isFieldPresent(sfDestination))
|
if (tt == ttURITOKEN_MINT && amt == beast::zero &&
|
||||||
|
!ctx.tx.isFieldPresent(sfDestination))
|
||||||
{
|
{
|
||||||
JLOG(ctx.j.warn()) << "Malformed transaction. "
|
JLOG(ctx.j.warn()) << "Malformed transaction. "
|
||||||
<< "If no sell-to destination is specified "
|
<< "If no sell-to destination is specified "
|
||||||
|
|||||||
Reference in New Issue
Block a user