From a547f87c46876c441fd583b5afccf4001cc738ff Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Mon, 14 Aug 2023 12:00:21 -0400 Subject: [PATCH] update amount guard --- src/ripple/app/tx/impl/URIToken.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ripple/app/tx/impl/URIToken.cpp b/src/ripple/app/tx/impl/URIToken.cpp index cca038366..54fd5376f 100644 --- a/src/ripple/app/tx/impl/URIToken.cpp +++ b/src/ripple/app/tx/impl/URIToken.cpp @@ -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 "