mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-30 18:40:28 +00:00
refactor: Rename (mostly keylet) functions to more closely match the docs (#7059)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -880,7 +880,7 @@ public:
|
||||
})",
|
||||
jv);
|
||||
|
||||
auto const jvL = env.le(keylet::line(Account("bob").id(), Account("alice")["USD"]))
|
||||
auto const jvL = env.le(keylet::trustLine(Account("bob").id(), Account("alice")["USD"]))
|
||||
->getJson(JsonOptions::Values::None);
|
||||
for (auto it = jv.begin(); it != jv.end(); ++it)
|
||||
BEAST_EXPECT(*it == jvL[it.memberName()]);
|
||||
@@ -922,14 +922,15 @@ public:
|
||||
})",
|
||||
jv);
|
||||
|
||||
auto const jvL = env.le(keylet::line(Account("bob").id(), Account("alice")["USD"]))
|
||||
auto const jvL = env.le(keylet::trustLine(Account("bob").id(), Account("alice")["USD"]))
|
||||
->getJson(JsonOptions::Values::None);
|
||||
for (auto it = jv.begin(); it != jv.end(); ++it)
|
||||
BEAST_EXPECT(*it == jvL[it.memberName()]);
|
||||
|
||||
env.trust(Account("bob")["USD"](0), "alice");
|
||||
env.trust(Account("alice")["USD"](0), "bob");
|
||||
BEAST_EXPECT(env.le(keylet::line(Account("bob").id(), Account("alice")["USD"])) == nullptr);
|
||||
BEAST_EXPECT(
|
||||
env.le(keylet::trustLine(Account("bob").id(), Account("alice")["USD"])) == nullptr);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -972,13 +973,14 @@ public:
|
||||
})",
|
||||
jv);
|
||||
|
||||
auto const jvL = env.le(keylet::line(Account("alice").id(), Account("bob")["USD"]))
|
||||
auto const jvL = env.le(keylet::trustLine(Account("alice").id(), Account("bob")["USD"]))
|
||||
->getJson(JsonOptions::Values::None);
|
||||
for (auto it = jv.begin(); it != jv.end(); ++it)
|
||||
BEAST_EXPECT(*it == jvL[it.memberName()]);
|
||||
|
||||
env(pay("alice", "bob", Account("alice")["USD"](50)));
|
||||
BEAST_EXPECT(env.le(keylet::line(Account("alice").id(), Account("bob")["USD"])) == nullptr);
|
||||
BEAST_EXPECT(
|
||||
env.le(keylet::trustLine(Account("alice").id(), Account("bob")["USD"])) == nullptr);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user