mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +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)
|
||||
return tecNO_DST;
|
||||
|
||||
// check if the destination has disallowed incoming offers
|
||||
if (sleDst->getFlags() & lsfDisallowIncomingNFTokenOffer)
|
||||
return tecNO_PERMISSION;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user