Fix a couple of cross-platform build errors

This commit is contained in:
Ed Hennis
2025-04-18 13:58:27 -04:00
parent 327d576d7e
commit a01ce0ad00
2 changed files with 4 additions and 4 deletions

View File

@@ -321,7 +321,7 @@ class LoanBroker_test : public beast::unit_test::suite
? STAmount(env.current()->fees().base.value()) ? STAmount(env.current()->fees().base.value())
: vault.asset(0)); : vault.asset(0));
env.require(balance(alice, expectedBalance)); env.require(balance(alice, expectedBalance));
env.require(balance(pseudoAccount, None(vault.asset))); env.require(balance(pseudoAccount, None(vault.asset.raw())));
} }
} }

View File

@@ -1684,7 +1684,7 @@ class Invariants_test : public beast::unit_test::suite
doInvariantCheck( doInvariantCheck(
{{"Loan Broker with zero OwnerCount has multiple indexes in " {{"Loan Broker with zero OwnerCount has multiple indexes in "
"the Directory root"}}, "the Directory root"}},
[&loanBrokerKeylet, &setupTest, this]( [&setupTest](
Account const& A1, Account const& A2, ApplyContext& ac) { Account const& A1, Account const& A2, ApplyContext& ac) {
auto test = setupTest(A1, A2, ac); auto test = setupTest(A1, A2, ac);
if (!test || !test->first || !test->second) if (!test || !test->first || !test->second)
@@ -1710,7 +1710,7 @@ class Invariants_test : public beast::unit_test::suite
doInvariantCheck( doInvariantCheck(
{{"Loan Broker directory corrupt"}}, {{"Loan Broker directory corrupt"}},
[&loanBrokerKeylet, &setupTest, this]( [&setupTest](
Account const& A1, Account const& A2, ApplyContext& ac) { Account const& A1, Account const& A2, ApplyContext& ac) {
auto test = setupTest(A1, A2, ac); auto test = setupTest(A1, A2, ac);
if (!test || !test->first || !test->second) if (!test || !test->first || !test->second)
@@ -1741,7 +1741,7 @@ class Invariants_test : public beast::unit_test::suite
doInvariantCheck( doInvariantCheck(
{{"Loan Broker with zero OwnerCount has an unexpected entry in " {{"Loan Broker with zero OwnerCount has an unexpected entry in "
"the directory"}}, "the directory"}},
[&loanBrokerKeylet, &setupTest, this]( [&setupTest](
Account const& A1, Account const& A2, ApplyContext& ac) { Account const& A1, Account const& A2, ApplyContext& ac) {
auto test = setupTest(A1, A2, ac); auto test = setupTest(A1, A2, ac);
if (!test || !test->first || !test->second) if (!test || !test->first || !test->second)