From 56c774add8967fa9154a01e935fcea8f7fae2504 Mon Sep 17 00:00:00 2001 From: JCW Date: Tue, 24 Mar 2026 17:02:50 +0000 Subject: [PATCH] Address PR comments Signed-off-by: JCW --- src/test/app/lending/LoanBatch_test.cpp | 24 ++++++++++++------------ src/test/jtx/batch.h | 3 +-- src/test/jtx/impl/batch.cpp | 5 ++--- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/src/test/app/lending/LoanBatch_test.cpp b/src/test/app/lending/LoanBatch_test.cpp index 22cbdf7830..3fc48894ff 100644 --- a/src/test/app/lending/LoanBatch_test.cpp +++ b/src/test/app/lending/LoanBatch_test.cpp @@ -49,11 +49,11 @@ protected: bobSeq, batchFee, tfAllOrNothing, + aliceSeq, {loanSet, del(alice, loanKeylet.key), manage(alice, loanKeylet.key, tfLoanImpair), - pay(alice, loanKeylet.key, XRP(500))}, - aliceSeq), + pay(alice, loanKeylet.key, XRP(500))}), batch::sig(alice)); env(batchTxn, ter(temINVALID_INNER_BATCH)); }; @@ -100,8 +100,8 @@ protected: brokerSeq, batchFee, tfAllOrNothing, - {txns.vaultCreateTx, txns.vaultDepositTx, txns.brokerSetTx, *txns.coverDepositTx}, - brokerSeq + 1)); + brokerSeq + 1, + {txns.vaultCreateTx, txns.vaultDepositTx, txns.brokerSetTx, *txns.coverDepositTx})); env(batchTxn); env.close(); @@ -163,7 +163,7 @@ protected: // Create the batch transaction with both LoanSet and LoanDelete auto const batchTxn = env.jt( batch::make( - broker, brokerSeq, batchFee, tfAllOrNothing, {loanSetTx, loanDelTx}, brokerSeq + 1), + broker, brokerSeq, batchFee, tfAllOrNothing, brokerSeq + 1, {loanSetTx, loanDelTx}), batch::sig(borrower)); env(batchTxn); @@ -229,7 +229,7 @@ protected: // Create the batch transaction with LoanSet and impair auto const batchTxn = env.jt( batch::make( - broker, brokerSeq, batchFee, tfAllOrNothing, {loanSetTx, impairTx}, brokerSeq + 1), + broker, brokerSeq, batchFee, tfAllOrNothing, brokerSeq + 1, {loanSetTx, impairTx}), batch::sig(borrower)); auto currentTime = env.now().time_since_epoch().count(); @@ -374,8 +374,8 @@ protected: brokerSeq, batchFee, tfAllOrNothing, - {defaultTx, withdrawTx, paymentTx}, - brokerSeq + 1)); + brokerSeq + 1, + {defaultTx, withdrawTx, paymentTx})); env(batchTxn); env.close(); @@ -511,8 +511,8 @@ protected: borrowerSeq, batchFee, tfAllOrNothing, - {loanSetTx, buyTx, sellTx, payTx}, - borrowerSeq + 1), + borrowerSeq + 1, + {loanSetTx, buyTx, sellTx, payTx}), batch::sig(broker)); env(batchTxn); @@ -668,8 +668,8 @@ protected: borrowerSeq, batchFee, tfAllOrNothing, - {loanSetTx, buyTx, sellTx, payTx}, - borrowerSeq + 1), + borrowerSeq + 1, + {loanSetTx, buyTx, sellTx, payTx}), batch::sig(broker)); env(batchTxn); diff --git a/src/test/jtx/batch.h b/src/test/jtx/batch.h index 15f79b0184..53f6f74184 100644 --- a/src/test/jtx/batch.h +++ b/src/test/jtx/batch.h @@ -87,9 +87,8 @@ make( uint32_t seq, STAmount const& fee, std::uint32_t flags, - std::vector const& txns, std::uint32_t innerStartSeq, - std::optional const& ticket = std::nullopt); + std::vector const& txns); /** Set a batch signature on a JTx. */ class sig diff --git a/src/test/jtx/impl/batch.cpp b/src/test/jtx/impl/batch.cpp index ad53424f19..74cbd72548 100644 --- a/src/test/jtx/impl/batch.cpp +++ b/src/test/jtx/impl/batch.cpp @@ -53,14 +53,13 @@ make( uint32_t seq, STAmount const& fee, std::uint32_t flags, - std::vector const& txns, std::uint32_t innerStartSeq, - std::optional const& ticket) + std::vector const& txns) { auto jv = outer(account, seq, fee, flags); for (std::size_t i = 0; i < txns.size(); ++i) { - inner in(txns[i], innerStartSeq + static_cast(i), ticket); + inner in(txns[i], innerStartSeq + static_cast(i)); auto const index = jv[jss::RawTransactions].size(); Json::Value& batchTransaction = jv[jss::RawTransactions][index]; batchTransaction = Json::Value{};