This commit is contained in:
Mayukha Vadari
2026-06-29 20:07:58 -04:00
parent b8fd6c2084
commit 6c8746cbf3
3 changed files with 8 additions and 5 deletions

View File

@@ -445,6 +445,12 @@ struct ApplyViewContext
ApplyView& view;
STTx const& tx;
ReserveContext reserveContext;
static ApplyViewContext
makeFromTx(ApplyView& view, STTx const& tx)
{
return {.view = view, .tx = tx, .reserveContext = ReserveContext::makeFromTx(view, tx)};
}
};
namespace directory {

View File

@@ -116,7 +116,7 @@ public:
getApplyViewContext()
{
XRPL_ASSERT(view_.has_value(), "Previous view exists");
return {.view = *view_, .tx = tx, .reserveContext = ReserveContext::makeFromTx(*view_, tx)};
return ApplyViewContext::makeFromTx(*view_, tx);
}
private: