mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-22 23:00:55 +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:
@@ -2196,7 +2196,7 @@ public:
|
||||
jtx::PrettyAmount const& expectBalance)
|
||||
{
|
||||
Issue const& issue = expectBalance.value().get<Issue>();
|
||||
auto const sleTrust = env.le(keylet::line(account.id(), issue));
|
||||
auto const sleTrust = env.le(keylet::trustLine(account.id(), issue));
|
||||
BEAST_EXPECT(sleTrust);
|
||||
if (sleTrust)
|
||||
{
|
||||
@@ -2363,7 +2363,7 @@ public:
|
||||
else
|
||||
{
|
||||
// Verify that no trustline was created.
|
||||
auto const sleTrust = env.le(keylet::line(acct, usd));
|
||||
auto const sleTrust = env.le(keylet::trustLine(acct, usd));
|
||||
BEAST_EXPECT(!sleTrust);
|
||||
}
|
||||
}
|
||||
@@ -2548,8 +2548,8 @@ public:
|
||||
env.require(offers(bob, 0));
|
||||
|
||||
// The two trustlines that were generated by offers should be gone.
|
||||
BEAST_EXPECT(!env.le(keylet::line(alice.id(), eur)));
|
||||
BEAST_EXPECT(!env.le(keylet::line(bob.id(), usd)));
|
||||
BEAST_EXPECT(!env.le(keylet::trustLine(alice.id(), eur)));
|
||||
BEAST_EXPECT(!env.le(keylet::trustLine(bob.id(), usd)));
|
||||
|
||||
// Make two more offers that leave one of the offers non-dry. We
|
||||
// need to properly sequence the transactions:
|
||||
@@ -4484,7 +4484,7 @@ public:
|
||||
jtx::Account const& src,
|
||||
jtx::Account const& dst,
|
||||
Currency const& cur) -> bool {
|
||||
return bool(env.le(keylet::line(src, dst, cur)));
|
||||
return bool(env.le(keylet::trustLine(src, dst, cur)));
|
||||
};
|
||||
|
||||
Account const alice("alice");
|
||||
|
||||
Reference in New Issue
Block a user