Repository navigation
Conversation
There was a problem hiding this comment.
Clean, mechanical refactor moving isGlobalFrozen from a free function taking MPTokenIssuanceEntryR into a const member on MPTokenIssuanceEntry. All call sites in MPTokenHelpers.cpp are updated consistently, and short-circuit truthiness checks on issuanceSle before calling the new member are preserved where they existed in the original code (lines around isFrozen/isAnyFrozen). No behavior change, no new correctness or security issues identified in the added lines.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
4c32248 to
3c5c06e
Compare
|
This PR has conflicts, please resolve them in order for the PR to be reviewed. |
3c5c06e to
6e7265e
Compare
|
All conflicts have been resolved. Assigned reviewers can now start or resume their review. |
There was a problem hiding this comment.
Clean mechanical refactor: isGlobalFrozen is moved from a free function taking MPTokenIssuanceEntryR to a const member on the wrapper. All call sites in MPTokenHelpers.cpp are updated consistently and short-circuit guards (issuanceSle && issuanceSle.isGlobalFrozen()) are preserved correctly. The dropped XRPL_ASSERT is justified by SLEBase's constructor-level type checking, consistent with the stated migration pattern. No behavioral changes or correctness issues found in the diff.
Replace the free isGlobalFrozen(MPTokenIssuanceEntryR const&) with a const member MPTokenIssuanceEntry::isGlobalFrozen(). The (ReadView, MPTIssue) overload stays as a shim that builds the entry and calls the member. The old type assertion is dropped: the entry type is now bound at compile time and checked by the SLEBase constructors.
|
This PR has conflicts, please resolve them in order for the PR to be reviewed. |
63751ec to
37f8e3f
Compare
|
All conflicts have been resolved. Assigned reviewers can now start or resume their review. |
…ch/mptokenissuance-isGlobalFrozen
High Level Overview of Change
Moves
isGlobalFrozen(MPTokenIssuanceEntryR const&)onto the wrapper as the const memberMPTokenIssuanceEntry::isGlobalFrozen(). The free SLE overload is deleted and its callers inMPTokenHelpers.cppnow call the member. TheisGlobalFrozen(ReadView const&, MPTIssue const&)overload stays as a shim that builds the entry and calls the member.Context of Change
Part of the Wrapped SLEs migration (design: step 2/3 of #7886). Issuance-specific logic now lives on the typed wrapper, so the compiler rejects calls with the wrong entry type. The old
XRPL_ASSERTon the SLE type is dropped because theSLEBaseconstructors already check the bound type. Pure refactor: no amendment, no behavior change; any observable difference is a bug.Stacked on #8359; review only the last commit.
This PR was fully written by AI (Claude Code) under human direction; the human author reviewed the diff.
API Impact
libxrplchange (any change that may affectlibxrplor dependents oflibxrpl)Test Plan
Syntax-checked (
clang++ -fsyntax-onlywith project flags) all 48 .cpp files that includeMPTokenIssuanceEntry.horMPTokenHelpers.h; clang-tidy clean on the changed files; pre-commit clean. No new tests. CI runs the full unit test suite.🤖 Generated with Claude Code