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];
24 BEAST_EXPECT(lc_result[jss::ledger_hash] ==
"CCC3B3E88CCAC17F1BE6B4A648A55999411F19E3FE55EB721960EB0DF28EDDA5");
25 BEAST_EXPECT(lc_result[jss::ledger_index] == 2);
28 auto const ar_master = env.le(env.master);
29 BEAST_EXPECT(ar_master->getAccountID(sfAccount) == env.master.id());
30 BEAST_EXPECT((*ar_master)[sfBalance] == drops(99999989999999980));
32 auto const ar_alice = env.le(alice);
33 BEAST_EXPECT(ar_alice->getAccountID(sfAccount) == alice.id());
34 BEAST_EXPECT((*ar_alice)[sfBalance] == XRP(10000));
36 lc_result = env.rpc(
"ledger_closed")[jss::result];
37 BEAST_EXPECT(lc_result[jss::ledger_hash] ==
"0F1A9E0C109ADEF6DA2BDE19217C12BBEC57174CBDBD212B0EBDC1CEDB853185");
38 BEAST_EXPECT(lc_result[jss::ledger_index] == 3);