ensure inclusion of ServiceFee field continues to return temMALFORMED until amendment is enabled

This commit is contained in:
Richard Holland
2025-01-28 14:04:40 +11:00
parent baffb7c2ae
commit f0222d9fa6

View File

@@ -100,6 +100,12 @@ preflight1(PreflightContext const& ctx)
return temMALFORMED;
}
if (ctx.tx.isFieldPresent(sfServiceFee) &&
!ctx.rules.enabled(featureServiceFee))
{
return temMALFORMED;
}
auto const ret = preflight0(ctx);
if (!isTesSuccess(ret))
return ret;