mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 07:10:53 +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:
@@ -338,7 +338,7 @@ xrpMinusFee(Env const& env, std::int64_t xrpAmount)
|
||||
[[nodiscard]] bool
|
||||
expectHolding(Env& env, AccountID const& account, STAmount const& value, bool defaultLimits)
|
||||
{
|
||||
if (auto const sle = env.le(keylet::line(account, value.get<Issue>())))
|
||||
if (auto const sle = env.le(keylet::trustLine(account, value.get<Issue>())))
|
||||
{
|
||||
Issue const issue = value.get<Issue>();
|
||||
bool const accountLow = account < issue.account;
|
||||
@@ -368,7 +368,7 @@ expectHolding(Env& env, AccountID const& account, STAmount const& value, bool de
|
||||
[[nodiscard]] bool
|
||||
expectHolding(Env& env, AccountID const& account, None const&, Issue const& issue)
|
||||
{
|
||||
return !env.le(keylet::line(account, issue));
|
||||
return !env.le(keylet::trustLine(account, issue));
|
||||
}
|
||||
|
||||
[[nodiscard]] bool
|
||||
@@ -388,7 +388,7 @@ expectHolding(Env& env, AccountID const& account, None const& value)
|
||||
[[nodiscard]] bool
|
||||
expectMPT(Env& env, AccountID const& account, STAmount const& value)
|
||||
{
|
||||
auto const mptIssuanceID = keylet::mptIssuance(value.asset().get<MPTIssue>());
|
||||
auto const mptIssuanceID = keylet::mptokenIssuance(value.asset().get<MPTIssue>());
|
||||
auto const mptToken = env.le(keylet::mptoken(mptIssuanceID.key, account));
|
||||
return mptToken && (*mptToken)[sfMPTAmount] == value.mpt().value();
|
||||
}
|
||||
@@ -553,7 +553,7 @@ claim(
|
||||
uint256
|
||||
channel(AccountID const& account, AccountID const& dst, std::uint32_t seqProxyValue)
|
||||
{
|
||||
auto const k = keylet::payChan(account, dst, seqProxyValue);
|
||||
auto const k = keylet::payChannel(account, dst, seqProxyValue);
|
||||
return k.key;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user