From 1b4a564369e6b39defdc63004c5fba4cf73e47f6 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Wed, 18 Feb 2026 13:20:29 -0500 Subject: [PATCH] fix build issues --- src/test/app/TestHostFunctions.h | 4 ++-- src/xrpld/app/wasm/HostFuncImpl.h | 3 ++- src/xrpld/app/wasm/detail/HostFuncImplLedgerHeader.cpp | 4 ++-- src/xrpld/app/wasm/detail/HostFuncImplNFT.cpp | 2 +- src/xrpld/app/wasm/detail/HostFuncWrapper.cpp | 6 +++++- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/test/app/TestHostFunctions.h b/src/test/app/TestHostFunctions.h index 68cf42b362..205c9cc1a0 100644 --- a/src/test/app/TestHostFunctions.h +++ b/src/test/app/TestHostFunctions.h @@ -1,13 +1,13 @@ #include #include -#include -#include #include #include +#include #include #include +#include namespace xrpl { diff --git a/src/xrpld/app/wasm/HostFuncImpl.h b/src/xrpld/app/wasm/HostFuncImpl.h index d8e080a8ef..1760be7c02 100644 --- a/src/xrpld/app/wasm/HostFuncImpl.h +++ b/src/xrpld/app/wasm/HostFuncImpl.h @@ -1,8 +1,9 @@ #pragma once -#include #include +#include + namespace xrpl { class WasmHostFunctionsImpl : public HostFunctions { diff --git a/src/xrpld/app/wasm/detail/HostFuncImplLedgerHeader.cpp b/src/xrpld/app/wasm/detail/HostFuncImplLedgerHeader.cpp index 57ef79e11a..37e2796bf6 100644 --- a/src/xrpld/app/wasm/detail/HostFuncImplLedgerHeader.cpp +++ b/src/xrpld/app/wasm/detail/HostFuncImplLedgerHeader.cpp @@ -1,6 +1,6 @@ -#include #include +#include #include namespace xrpl { @@ -42,7 +42,7 @@ WasmHostFunctionsImpl::isAmendmentEnabled(uint256 const& amendmentId) Expected WasmHostFunctionsImpl::isAmendmentEnabled(std::string_view const& amendmentName) { - auto const& table = ctx.app.getAmendmentTable(); + auto const& table = ctx.registry.getAmendmentTable(); auto const amendment = table.find(std::string(amendmentName)); return ctx.view().rules().enabled(amendment); } diff --git a/src/xrpld/app/wasm/detail/HostFuncImplNFT.cpp b/src/xrpld/app/wasm/detail/HostFuncImplNFT.cpp index 7c4ee00406..298cd1f941 100644 --- a/src/xrpld/app/wasm/detail/HostFuncImplNFT.cpp +++ b/src/xrpld/app/wasm/detail/HostFuncImplNFT.cpp @@ -1,8 +1,8 @@ -#include #include #include #include +#include namespace xrpl { diff --git a/src/xrpld/app/wasm/detail/HostFuncWrapper.cpp b/src/xrpld/app/wasm/detail/HostFuncWrapper.cpp index 0d245c526c..bbe6003d63 100644 --- a/src/xrpld/app/wasm/detail/HostFuncWrapper.cpp +++ b/src/xrpld/app/wasm/detail/HostFuncWrapper.cpp @@ -1,9 +1,13 @@ -#include #include #include #include +#include +#include +#include #include +#include +#include #include namespace xrpl {