mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
fix tests (typos)
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user