14 using namespace test::jtx;
18 p->FEES.reference_fee = 10;
20 Account
const alice{
"alice"};
21 env.fund(XRP(10000), alice);
23 auto lc_result = env.rpc(
"ledger_closed")[jss::result];
25 lc_result[jss::ledger_hash] ==
26 "CCC3B3E88CCAC17F1BE6B4A648A55999411F19E3FE55EB721960EB0DF28EDDA5");
27 BEAST_EXPECT(lc_result[jss::ledger_index] == 2);
30 auto const ar_master = env.le(env.master);
31 BEAST_EXPECT(ar_master->getAccountID(sfAccount) == env.master.id());
32 BEAST_EXPECT((*ar_master)[sfBalance] == drops(99999989999999980));
34 auto const ar_alice = env.le(alice);
35 BEAST_EXPECT(ar_alice->getAccountID(sfAccount) == alice.id());
36 BEAST_EXPECT((*ar_alice)[sfBalance] == XRP(10000));
38 lc_result = env.rpc(
"ledger_closed")[jss::result];
40 lc_result[jss::ledger_hash] ==
41 "E86DE7F3D7A4D9CE17EF7C8BA08A8F4D8F643B9552F0D895A31CDA78F541DE4E");
42 BEAST_EXPECT(lc_result[jss::ledger_index] == 3);