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
@@ -2308,11 +2308,7 @@ public:
|
||||
env.memoize("bob");
|
||||
env.memoize("carol");
|
||||
{
|
||||
Json::Value cancelOffer;
|
||||
cancelOffer[jss::Account] = alice.human();
|
||||
cancelOffer[jss::OfferSequence] = 3;
|
||||
cancelOffer[jss::TransactionType] = jss::OfferCancel;
|
||||
auto const jtx = env.jt(cancelOffer, seq(5), fee(10));
|
||||
auto const jtx = env.jt(offer_cancel(alice, 3), seq(5), fee(10));
|
||||
auto const pf = preflight(
|
||||
env.app(),
|
||||
env.current()->rules(),
|
||||
|
||||
Reference in New Issue
Block a user