Skip to content

Commit

Permalink
fixed accidential removal of check
Browse files Browse the repository at this point in the history
  • Loading branch information
vvysokikh1 committed Jan 28, 2025
1 parent 7fcd042 commit 5d032e4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/xrpld/app/tx/detail/NFTokenAcceptOffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,17 @@ NFTokenAcceptOffer::preclaim(PreclaimContext const& ctx)

// Make sure that we are allowed to hold what the taker will pay us.
// This is a similar approach taken by usual offers.
auto const result = checkAcceptAsset(
ctx.view,
ctx.flags,
(*so)[sfOwner],
ctx.j,
needed.asset().get<Issue>());
if (result != tesSUCCESS)
return result;
if (!needed.native())
{
auto const result = checkAcceptAsset(
ctx.view,
ctx.flags,
(*so)[sfOwner],
ctx.j,
needed.asset().get<Issue>());
if (result != tesSUCCESS)
return result;
}
}

// Fix a bug where the transfer of an NFToken with a transfer fee could
Expand Down

0 comments on commit 5d032e4

Please sign in to comment.