mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-27 09:00:32 +00:00
Co-authored-by: tequ <git@tequ.dev> Co-authored-by: yinyiqian1 <yqian@ripple.com> Co-authored-by: Mayukha Vadari <mvadari@ripple.com> Co-authored-by: Mayukha Vadari <mvadari@gmail.com> Co-authored-by: xrplf-ai-reviewer[bot] <266832837+xrplf-ai-reviewer[bot]@users.noreply.github.com> Co-authored-by: Peter Chen <34582813+PeterChen13579@users.noreply.github.com> Co-authored-by: Zhiyuan Wang <96991820+Kassaking7@users.noreply.github.com> Co-authored-by: Ayaz Salikhov <asalikhov@ripple.com> Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com> Co-authored-by: Zhiyuan Wang <1830604455@qq.com>
This commit is contained in:
@@ -503,7 +503,7 @@ class Ticket_test : public beast::unit_test::Suite
|
||||
Account const alice{"alice"};
|
||||
|
||||
// Fund alice not quite enough to make the reserve for a Ticket.
|
||||
env.fund(env.current()->fees().accountReserve(1) - drops(1), alice);
|
||||
env.fund(env.current()->fees().accountReserve(1, 1) - drops(1), alice);
|
||||
env.close();
|
||||
|
||||
env(ticket::create(alice, 1), Ter(tecINSUFFICIENT_RESERVE));
|
||||
@@ -511,7 +511,8 @@ class Ticket_test : public beast::unit_test::Suite
|
||||
env.require(Owners(alice, 0), tickets(alice, 0));
|
||||
|
||||
// Give alice enough to exactly meet the reserve for one Ticket.
|
||||
env(pay(env.master, alice, env.current()->fees().accountReserve(1) - env.balance(alice)));
|
||||
env(pay(
|
||||
env.master, alice, env.current()->fees().accountReserve(1, 1) - env.balance(alice)));
|
||||
env.close();
|
||||
|
||||
env(ticket::create(alice, 1));
|
||||
@@ -524,7 +525,7 @@ class Ticket_test : public beast::unit_test::Suite
|
||||
env(
|
||||
pay(env.master,
|
||||
alice,
|
||||
env.current()->fees().accountReserve(250) - drops(1) - env.balance(alice)));
|
||||
env.current()->fees().accountReserve(250, 1) - drops(1) - env.balance(alice)));
|
||||
env.close();
|
||||
|
||||
// alice doesn't quite have the reserve for a total of 250
|
||||
@@ -535,7 +536,8 @@ class Ticket_test : public beast::unit_test::Suite
|
||||
|
||||
// Give alice enough so she can make the reserve for all 250
|
||||
// Tickets.
|
||||
env(pay(env.master, alice, env.current()->fees().accountReserve(250) - env.balance(alice)));
|
||||
env(pay(
|
||||
env.master, alice, env.current()->fees().accountReserve(250, 1) - env.balance(alice)));
|
||||
env.close();
|
||||
|
||||
std::uint32_t const ticketSeq{env.seq(alice) + 1};
|
||||
|
||||
Reference in New Issue
Block a user