mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-19 10:05:48 +00:00
update amount guard
This commit is contained in:
@@ -60,7 +60,8 @@ URIToken::preflight(PreflightContext const& ctx)
|
||||
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. "
|
||||
<< "If no sell-to destination is specified "
|
||||
|
||||
Reference in New Issue
Block a user