Skip to content

refactor: Move isFrozen onto MPTokenIssuanceEntry - #8709

Open
mvadari wants to merge 2 commits into
mvadari/rearch/mptokenissuance-canTradefrom
mvadari/rearch/mptokenissuance-isFrozen
Open

mvadari wants to merge 2 commits into
mvadari/rearch/mptokenissuance-canTradefrom
mvadari/rearch/mptokenissuance-isFrozen

Conversation

@mvadari

@mvadari mvadari commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

High Level Overview of Change

Adds the const member MPTokenIssuanceEntry::isFrozen(account, depth = 0) (body in src/libxrpl/ledger/entries/MPTokenIssuanceEntry.cpp). It holds the MPTokenIssuance case of the free isFrozen(view, account, SLE const&, depth): the issuance lock, the holder's MPToken lock, and the vault pseudo-account check. That case of the free function is now a one-line call to the member. The escrow preclaim helpers in EscrowHelpers.h already hold an MPTokenIssuanceEntryR, so they call the member directly.

Context of Change

Part of the Wrapped SLEs migration (design: step 2/3 of #7886). The SLE overload stays for MPTInvariant, which reads the issuance as a raw SLE. Its MPToken case is removed in #8376; whichever of the two merges second resolves the small conflict there. Pure refactor: no amendment, no behavior change; any observable difference is a bug.

Stacked on #8432; 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

  • libxrpl change (any change that may affect libxrpl or dependents of libxrpl)

Test Plan

Syntax-checked (clang++ -fsyntax-only with project flags) the changed .cpp files and MPTInvariant.cpp; clang-tidy clean on the changed files; pre-commit clean. No new tests. CI runs the full unit test suite.

🤖 Generated with Claude Code

@mvadari
mvadari added this pull request to stack #8451 November 9, 2026 17:47
@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

The SLE isFrozen overload keeps its MPTokenIssuance case for
MPTInvariant, which has no entry, and now calls the member.
@github-actions

Copy link
Copy Markdown

This PR has conflicts, please resolve them in order for the PR to be reviewed.

@mvadari
mvadari force-pushed the mvadari/rearch/mptokenissuance-isFrozen branch from b734c13 to f9e3fd1 Compare November 10, 2026 03:55
@github-actions

Copy link
Copy Markdown

All conflicts have been resolved. Assigned reviewers can now start or resume their review.

@ripple-ai-reviewer ripple-ai-reviewer Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant