mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Merge pull request #89 from Xahau/uritoken-v2-testing
add `sfDestination` tests for URIToken
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