diff --git a/src/ripple/app/tx/impl/NFTokenMint.cpp b/src/ripple/app/tx/impl/NFTokenMint.cpp index 218df865482..2a63f8893fa 100644 --- a/src/ripple/app/tx/impl/NFTokenMint.cpp +++ b/src/ripple/app/tx/impl/NFTokenMint.cpp @@ -38,7 +38,7 @@ NFTokenMint::preflight(PreflightContext const& ctx) return temDISABLED; if (!ctx.rules.enabled(featureNFTokenMintOffer) && - (ctx.tx[sfAmount] || ctx.tx[~sfDestination] || ctx.tx[~sfExpiration])) + (ctx.tx[~sfAmount] || ctx.tx[~sfDestination] || ctx.tx[~sfExpiration])) return temDISABLED; if (auto const ret = preflight1(ctx); !isTesSuccess(ret)) @@ -91,7 +91,7 @@ NFTokenMint::preflight(PreflightContext const& ctx) return temMALFORMED; } - if (STAmount const amount = ctx.tx[sfAmount]) + if (STAmount const amount = ctx.tx[~sfAmount]) { if (amount.negative() && ctx.rules.enabled(fixNFTokenNegOffer)) // An offer for a negative amount makes no sense. @@ -173,7 +173,7 @@ NFTokenMint::preclaim(PreclaimContext const& ctx) return tecNO_PERMISSION; } - if (STAmount const amount = ctx.tx[sfAmount]) + if (STAmount const amount = ctx.tx[~sfAmount]) { if (hasExpired(ctx.view, ctx.tx[~sfExpiration])) return tecEXPIRED; @@ -374,7 +374,7 @@ NFTokenMint::doApply() auto offer = std::make_shared(offerID); (*offer)[sfOwner] = account_; (*offer)[sfNFTokenID] = nftokenID; - (*offer)[sfAmount] = ctx_.tx[sfAmount]; + (*offer)[sfAmount] = ctx_.tx[~sfAmount]; (*offer)[sfFlags] = sleFlags; (*offer)[sfOwnerNode] = *ownerNode; (*offer)[sfNFTokenOfferNode] = *offerNode;