Permissioned Domains (XLS-80d) (#5161)

This commit is contained in:
Olek
2025-01-10 12:44:14 -05:00
committed by GitHub
parent 07f118caec
commit ccc0889803
35 changed files with 1962 additions and 109 deletions

View File

@@ -203,6 +203,15 @@ Env::balance(Account const& account, Issue const& issue) const
return {amount, lookup(issue.account).name()};
}
std::uint32_t
Env::ownerCount(Account const& account) const
{
auto const sle = le(account);
if (!sle)
Throw<std::runtime_error>("missing account root");
return sle->getFieldU32(sfOwnerCount);
}
std::uint32_t
Env::seq(Account const& account) const
{
@@ -503,7 +512,8 @@ Env::autofill(JTx& jt)
}
catch (parse_error const&)
{
test.log << "parse failed:\n" << pretty(jv) << std::endl;
if (!parseFailureExpected_)
test.log << "parse failed:\n" << pretty(jv) << std::endl;
Rethrow();
}
}