fix tests (typos)

This commit is contained in:
Mayukha Vadari
2026-04-09 17:14:46 -04:00
parent be9913f16f
commit d616aff4e2
3 changed files with 4 additions and 4 deletions

View File

@@ -704,7 +704,7 @@ deleteAMMAccount(Sandbox& sb, Asset const& asset, Asset const& asset2, beast::Jo
return ter;
auto const ownerDirKeylet = keylet::ownerDir(ammAccountID);
if (!sb.dirRemove(ownerDirKeylet, (*ammRoot)[sfOwnerNode], ammRoot->key(), false))
if (!sb.dirRemove(ownerDirKeylet, (*ammSle)[sfOwnerNode], ammSle->key(), false))
{
// LCOV_EXCL_START
JLOG(j.error()) << "deleteAMMAccount: failed to remove dir link";

View File

@@ -402,7 +402,7 @@ CheckCash::doApply()
// b. issuing account (not sending account).
auto dstOpt = checkReserve();
if (dstOpt)
if (!dstOpt)
return tecNO_LINE_INSUF_RESERVE;
auto& dst = *dstOpt;

View File

@@ -7,6 +7,7 @@
#include <xrpl/ledger/helpers/OfferHelpers.h>
#include <xrpl/ledger/helpers/PermissionedDEXHelpers.h>
#include <xrpl/ledger/helpers/RippleStateHelpers.h>
#include <xrpl/ledger/helpers/TokenHelpers.h>
#include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/STAmount.h>
#include <xrpl/protocol/TER.h>
@@ -319,8 +320,7 @@ OfferCreate::flowCross(
STAmount sendMax = takerAmount.in;
if (!sendMax.native() && (accountID_ != sendMax.getIssuer()))
{
WAccountRoot const wrappedAcct(sendMax.getIssuer(), psb, j_);
gatewayXferRate = wrappedAcct.transferRate();
gatewayXferRate = transferRate(psb, sendMax);
if (gatewayXferRate.value != QUALITY_ONE)
{
sendMax =