mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use jtx::offer_cancel more places:
Replace explicit construction of OfferCancel transactions in unit tests with calls to jtx::offer_cancel().
This commit is contained in:
committed by
manojsdoshi
parent
7822a28c87
commit
ff3d2e7c29
@@ -279,12 +279,8 @@ struct Directory_test : public beast::unit_test::suite
|
||||
{
|
||||
for (int i = 0; i < dirNodeMaxEntries; ++i)
|
||||
{
|
||||
Json::Value cancelOffer;
|
||||
cancelOffer[jss::Account] = alice.human();
|
||||
cancelOffer[jss::OfferSequence] =
|
||||
Json::UInt(firstOfferSeq + page * dirNodeMaxEntries + i);
|
||||
cancelOffer[jss::TransactionType] = jss::OfferCancel;
|
||||
env(cancelOffer);
|
||||
env(offer_cancel(
|
||||
alice, firstOfferSeq + page * dirNodeMaxEntries + i));
|
||||
env.close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user