reduce PR size

This commit is contained in:
Vito
2026-06-08 12:52:33 +02:00
parent c9f6a606be
commit 357f1a1a29
7 changed files with 3 additions and 12 deletions

View File

@@ -9,7 +9,6 @@ and ledger_entries.macro files using pcpp and pyparsing.
import re
import shutil
from pathlib import Path
import pyparsing as pp
from pcpp import Preprocessor

View File

@@ -108,8 +108,6 @@ isSoleShareholder(ReadView const& view, AccountID const& account, SLE::const_ref
@return True if the vault is insolvent, false otherwise.
*/
[[nodiscard]] bool
isVaultInsolvent(
std::shared_ptr<SLE const> const& vault,
std::shared_ptr<SLE const> const& shareIssuance);
isVaultInsolvent(SLE::const_ref vault, SLE::const_ref shareIssuance);
} // namespace xrpl

View File

@@ -1,6 +1,5 @@
#pragma once
#include <xrpl/ledger/helpers/VaultHelpers.h>
#include <xrpl/tx/Transactor.h>
namespace xrpl {

View File

@@ -1,6 +1,5 @@
#pragma once
#include <xrpl/ledger/helpers/VaultHelpers.h>
#include <xrpl/tx/Transactor.h>
namespace xrpl {

View File

@@ -1,6 +1,5 @@
#pragma once
#include <xrpl/ledger/helpers/VaultHelpers.h>
#include <xrpl/tx/Transactor.h>
namespace xrpl {

View File

@@ -12,7 +12,6 @@
#include <xrpl/protocol/STNumber.h> // IWYU pragma: keep
#include <cstdint>
#include <memory>
#include <optional>
namespace xrpl {
@@ -139,9 +138,7 @@ isSoleShareholder(ReadView const& view, AccountID const& account, SLE::const_ref
}
[[nodiscard]] bool
isVaultInsolvent(
std::shared_ptr<SLE const> const& vault,
std::shared_ptr<SLE const> const& shareIssuance)
isVaultInsolvent(SLE::const_ref vault, SLE::const_ref shareIssuance)
{
XRPL_ASSERT(vault && vault->getType() == ltVAULT, "xrpl::isVaultInsolvent : Vault sle");
XRPL_ASSERT(

View File

@@ -35,7 +35,7 @@ struct Vault
{
Account owner;
uint256 id;
std::optional<std::uint32_t> flags;
std::optional<std::uint32_t> flags = std::nullopt;
};
static json::Value