diff --git a/src/test/app/HostFuncImpl_test.cpp b/src/test/app/HostFuncImpl_test.cpp index 6ada72b765..956c93a653 100644 --- a/src/test/app/HostFuncImpl_test.cpp +++ b/src/test/app/HostFuncImpl_test.cpp @@ -92,7 +92,7 @@ struct HostFuncImpl_test : public beast::unit_test::suite auto const result = hfs.getLedgerSqn(); if (BEAST_EXPECT(result.has_value())) - BEAST_EXPECT(result.value() == env.current()->info().seq); + BEAST_EXPECT(result.value() == env.current()->header().seq); } void @@ -149,7 +149,7 @@ struct HostFuncImpl_test : public beast::unit_test::suite auto const result = hfs.getParentLedgerHash(); if (BEAST_EXPECT(result.has_value())) - BEAST_EXPECT(result.value() == env.current()->info().parentHash); + BEAST_EXPECT(result.value() == env.current()->header().parentHash); } void diff --git a/src/test/app/TestHostFunctions.h b/src/test/app/TestHostFunctions.h index 128bfa446f..5eb81cc0cb 100644 --- a/src/test/app/TestHostFunctions.h +++ b/src/test/app/TestHostFunctions.h @@ -87,7 +87,7 @@ public: Expected getParentLedgerHash() override { - return env_.current()->info().parentHash; + return env_.current()->header().parentHash; } Expected @@ -284,7 +284,7 @@ public: Expected computeSha512HalfHash(Slice const& data) override { - return env_.current()->info().parentHash; + return env_.current()->header().parentHash; } Expected @@ -603,7 +603,7 @@ struct PerfHostFunctions : public TestHostFunctions Expected getParentLedgerHash() override { - return env_.current()->info().parentHash; + return env_.current()->header().parentHash; } Expected diff --git a/src/xrpld/app/wasm/detail/HostFuncImpl.cpp b/src/xrpld/app/wasm/detail/HostFuncImpl.cpp index 59c4cbfc84..d9f3550a7c 100644 --- a/src/xrpld/app/wasm/detail/HostFuncImpl.cpp +++ b/src/xrpld/app/wasm/detail/HostFuncImpl.cpp @@ -32,7 +32,7 @@ WasmHostFunctionsImpl::getParentLedgerTime() Expected WasmHostFunctionsImpl::getParentLedgerHash() { - return ctx.view().info().parentHash; + return ctx.view().header().parentHash; } Expected