refactor: replace JSON LastLedgerSequence with last_ledger_seq (#5884)

This change replaces instances of JSON LastLedgerSequence with last_ledger_seq, which makes the tests a bit simpler and easier to read.

Co-authored-by: Bart Thomee <11445373+bthomee@users.noreply.github.com>
This commit is contained in:
Mayukha Vadari
2025-10-15 16:55:11 -04:00
committed by GitHub
parent 108f90586c
commit a422855ea7
3 changed files with 23 additions and 37 deletions

View File

@@ -527,7 +527,7 @@ class LedgerRPC_test : public beast::unit_test::suite
// Alice
auto aliceSeq = env.seq(alice);
env(pay(alice, "george", XRP(1000)),
json(R"({"LastLedgerSequence":7})"),
last_ledger_seq(7),
ter(terQUEUED));
env(offer(alice, XRP(50000), alice["USD"](5000)),
seq(aliceSeq + 1),