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:
Scott Schurr
2021-04-13 15:43:38 -07:00
committed by manojsdoshi
parent 7822a28c87
commit ff3d2e7c29
6 changed files with 15 additions and 58 deletions

View File

@@ -1026,11 +1026,7 @@ public:
// Now multisign a ttOFFER_CANCEL canceling the offer we just created.
{
aliceSeq = env.seq(alice);
Json::Value cancelOffer;
cancelOffer[jss::Account] = alice.human();
cancelOffer[jss::OfferSequence] = offerSeq;
cancelOffer[jss::TransactionType] = jss::OfferCancel;
env(cancelOffer,
env(offer_cancel(alice, offerSeq),
seq(aliceSeq),
msig(becky, bogie),
fee(3 * baseFee));