diff --git a/src/libxrpl/tx/invariants/InvariantCheck.cpp b/src/libxrpl/tx/invariants/InvariantCheck.cpp index a151a4a0ca..c567adf73f 100644 --- a/src/libxrpl/tx/invariants/InvariantCheck.cpp +++ b/src/libxrpl/tx/invariants/InvariantCheck.cpp @@ -1004,7 +1004,7 @@ hasConstantFieldChanged(STObject const& before, STObject const& after, SOTemplat constant != SoeImmutable, "xrpl::hasConstantFieldChanged : constant is invalid"); if (constant == SoeImmutable) { - if (elem.style() == soeOPTIONAL) + if (elem.style() == SoeOptional) { // Optional constant fields may be added or removed, // but their value must not change once present. @@ -1020,7 +1020,7 @@ hasConstantFieldChanged(STObject const& before, STObject const& after, SOTemplat return true; } } - // soeNOTCONSTANT fields may change freely — no recursion + // SoeMutable fields may change freely — no recursion // into inner objects/arrays is needed because the parent // field explicitly allows changes to its entire contents. } diff --git a/src/test/app/Invariants_test.cpp b/src/test/app/Invariants_test.cpp index 88f31c1f64..016e539dc1 100644 --- a/src/test/app/Invariants_test.cpp +++ b/src/test/app/Invariants_test.cpp @@ -2138,7 +2138,7 @@ class Invariants_test : public beast::unit_test::Suite } } - // Template-based checks: soeNOTCONSTANT field + // Template-based checks: SoeMutable field // (sfPreviousTxnID) on AccountRoot should NOT fail when // modified — no invariant checks this field. { @@ -2181,7 +2181,7 @@ class Invariants_test : public beast::unit_test::Suite } } - // Without featureInvariantsV1_1, modifying a soeCONSTANT field + // Without featureInvariantsV1_1, modifying a SoeImmutable field // that is NOT sfLedgerEntryType/sfLedgerIndex on a non-loan // type should NOT fail (old code doesn't check it) {