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
@@ -277,13 +277,7 @@ class AccountTx_test : public beast::unit_test::suite
|
||||
env(offer(alice, USD(50), XRP(150)), sig(alie));
|
||||
env.close();
|
||||
|
||||
{
|
||||
Json::Value cancelOffer;
|
||||
cancelOffer[jss::Account] = alice.human();
|
||||
cancelOffer[jss::OfferSequence] = offerSeq;
|
||||
cancelOffer[jss::TransactionType] = jss::OfferCancel;
|
||||
env(cancelOffer, sig(alie));
|
||||
}
|
||||
env(offer_cancel(alice, offerSeq), sig(alie));
|
||||
env.close();
|
||||
|
||||
// SignerListSet
|
||||
|
||||
Reference in New Issue
Block a user