Fix an issue

Signed-off-by: JCW <a1q123456@users.noreply.github.com>
This commit is contained in:
JCW
2025-11-19 15:08:50 +00:00
parent 5ee23d92dd
commit e5158182f7

View File

@@ -798,10 +798,12 @@ public:
{ {
// a Env FeatureBitset has *only* those features // a Env FeatureBitset has *only* those features
Env env{*this, FeatureBitset{featureDynamicMPT}}; Env env{
*this, FeatureBitset{featureDynamicMPT | featureTokenEscrow}};
BEAST_EXPECT(env.app().config().features.size() == 2); BEAST_EXPECT(env.app().config().features.size() == 2);
foreachFeature(supported, [&](uint256 const& f) { foreachFeature(supported, [&](uint256 const& f) {
bool const has = f == featureDynamicMPT; bool const has =
(f == featureDynamicMPT || f == featureTokenEscrow);
this->BEAST_EXPECT(has == hasFeature(env, f)); this->BEAST_EXPECT(has == hasFeature(env, f));
}); });
} }