diff --git a/src/xrpld/app/tx/detail/NFTokenUtils.cpp b/src/xrpld/app/tx/detail/NFTokenUtils.cpp index a5d53dde97..db2b00cb2c 100644 --- a/src/xrpld/app/tx/detail/NFTokenUtils.cpp +++ b/src/xrpld/app/tx/detail/NFTokenUtils.cpp @@ -918,6 +918,7 @@ tokenOfferCreatePreclaim( if (!sleDst) return tecNO_DST; + // check if the destination has disallowed incoming offers if (sleDst->getFlags() & lsfDisallowIncomingNFTokenOffer) return tecNO_PERMISSION; } diff --git a/src/xrpld/app/tx/detail/SetTrust.cpp b/src/xrpld/app/tx/detail/SetTrust.cpp index 37ecdf2386..da8cc05078 100644 --- a/src/xrpld/app/tx/detail/SetTrust.cpp +++ b/src/xrpld/app/tx/detail/SetTrust.cpp @@ -200,8 +200,9 @@ SetTrust::preclaim(PreclaimContext const& ctx) // This might be nullptr auto const sleDst = ctx.view.read(keylet::account(uDstAccountID)); - if ((ammEnabled(ctx.view.rules()) || - ctx.view.rules().enabled(featureSingleAssetVault)) && + if (ammEnabled( + ctx.view.rules() || + ctx.view.rules().enabled(featureSingleAssetVault)) && sleDst == nullptr) return tecNO_DST;