Replace getSeqProxy().value() with getSeqValue() where appropriate

This commit is contained in:
Bronek Kozicki
2025-03-24 10:35:11 +00:00
parent 1f005d2370
commit d8880ddb48
6 changed files with 6 additions and 7 deletions

View File

@@ -3514,7 +3514,7 @@ NetworkOPsImp::addAccountHistoryJob(SubAccountHistoryInfoWeak subInfo)
{
auto stx = tx->getSTransaction();
if (stx->getAccountID(sfAccount) == accountId &&
stx->getSeqProxy().value() == 1)
stx->getSeqValue() == 1)
return true;
}

View File

@@ -184,7 +184,7 @@ CreateCheck::doApply()
// Note that we use the value from the sequence or ticket as the
// Check sequence. For more explanation see comments in SeqProxy.h.
std::uint32_t const seq = ctx_.tx.getSeqProxy().value();
std::uint32_t const seq = ctx_.tx.getSeqValue();
Keylet const checkKeylet = keylet::check(account_, seq);
auto sleCheck = std::make_shared<SLE>(checkKeylet);

View File

@@ -969,7 +969,7 @@ CreateOffer::applyGuts(Sandbox& sb, Sandbox& sbCancel)
// Note that we we use the value from the sequence or ticket as the
// offer sequence. For more explanation see comments in SeqProxy.h.
auto const offerSequence = ctx_.tx.getSeqProxy().value();
auto const offerSequence = ctx_.tx.getSeqValue();
// This is the original rate of the offer, and is the rate at which
// it will be placed, even if crossing offers change the amounts that

View File

@@ -240,8 +240,7 @@ EscrowCreate::doApply()
// Create escrow in ledger. Note that we we use the value from the
// sequence or ticket. For more explanation see comments in SeqProxy.h.
Keylet const escrowKeylet =
keylet::escrow(account, ctx_.tx.getSeqProxy().value());
Keylet const escrowKeylet = keylet::escrow(account, ctx_.tx.getSeqValue());
auto const slep = std::make_shared<SLE>(escrowKeylet);
(*slep)[sfAmount] = ctx_.tx[sfAmount];
(*slep)[sfAccount] = account;

View File

@@ -134,7 +134,7 @@ MPTokenIssuanceCreate::doApply()
view(),
j_,
{.account = account_,
.sequence = tx.getSeqProxy().value(),
.sequence = tx.getSeqValue(),
.flags = tx.getFlags(),
.maxAmount = tx[~sfMaximumAmount],
.assetScale = tx[~sfAssetScale],

View File

@@ -259,7 +259,7 @@ PayChanCreate::doApply()
// Note that we we use the value from the sequence or ticket as the
// payChan sequence. For more explanation see comments in SeqProxy.h.
Keylet const payChanKeylet =
keylet::payChan(account, dst, ctx_.tx.getSeqProxy().value());
keylet::payChan(account, dst, ctx_.tx.getSeqValue());
auto const slep = std::make_shared<SLE>(payChanKeylet);
// Funds held in this channel