mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
Fix a couple of cross-platform build errors
This commit is contained in:
@@ -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())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user