mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
code review changes
Signed-off-by: Pratik Mankawde <pmankawde@ripple.com>
This commit is contained in:
@@ -918,6 +918,7 @@ tokenOfferCreatePreclaim(
|
|||||||
if (!sleDst)
|
if (!sleDst)
|
||||||
return tecNO_DST;
|
return tecNO_DST;
|
||||||
|
|
||||||
|
// check if the destination has disallowed incoming offers
|
||||||
if (sleDst->getFlags() & lsfDisallowIncomingNFTokenOffer)
|
if (sleDst->getFlags() & lsfDisallowIncomingNFTokenOffer)
|
||||||
return tecNO_PERMISSION;
|
return tecNO_PERMISSION;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -200,8 +200,9 @@ SetTrust::preclaim(PreclaimContext const& ctx)
|
|||||||
|
|
||||||
// This might be nullptr
|
// This might be nullptr
|
||||||
auto const sleDst = ctx.view.read(keylet::account(uDstAccountID));
|
auto const sleDst = ctx.view.read(keylet::account(uDstAccountID));
|
||||||
if ((ammEnabled(ctx.view.rules()) ||
|
if (ammEnabled(
|
||||||
ctx.view.rules().enabled(featureSingleAssetVault)) &&
|
ctx.view.rules() ||
|
||||||
|
ctx.view.rules().enabled(featureSingleAssetVault)) &&
|
||||||
sleDst == nullptr)
|
sleDst == nullptr)
|
||||||
return tecNO_DST;
|
return tecNO_DST;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user