mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-26 08:30:30 +00:00
Merge remote-tracking branch 'ripple/develop' into xrplf/sponsor
This commit is contained in:
@@ -44,7 +44,6 @@
|
||||
#include <xrpl/tx/paths/detail/Steps.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
@@ -573,7 +572,7 @@ struct Flow_test : public beast::unit_test::Suite
|
||||
env.require(Balance(bob, eur(999)));
|
||||
|
||||
// Show that bob's USD offer is now a blocker.
|
||||
std::shared_ptr<SLE const> const usdOffer = env.le(bobUsdOffer);
|
||||
SLE::const_pointer const usdOffer = env.le(bobUsdOffer);
|
||||
if (BEAST_EXPECT(usdOffer))
|
||||
{
|
||||
std::uint64_t const bookRate = [&usdOffer]() {
|
||||
@@ -712,11 +711,11 @@ struct Flow_test : public beast::unit_test::Suite
|
||||
}
|
||||
|
||||
// Helper function that returns the Offers on an account.
|
||||
static std::vector<std::shared_ptr<SLE const>>
|
||||
static std::vector<SLE::const_pointer>
|
||||
offersOnAccount(jtx::Env& env, jtx::Account account)
|
||||
{
|
||||
std::vector<std::shared_ptr<SLE const>> result;
|
||||
forEachItem(*env.current(), account, [&result](std::shared_ptr<SLE const> const& sle) {
|
||||
std::vector<SLE::const_pointer> result;
|
||||
forEachItem(*env.current(), account, [&result](SLE::const_ref sle) {
|
||||
if (sle->getType() == ltOFFER)
|
||||
result.push_back(sle);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user