Repository navigation
Conversation
There was a problem hiding this comment.
Clean, mechanical refactor moving checkDestinationAndTag from a free function taking an AccountRootEntryR into an inline const member on AccountRootEntry, with the single caller in View.cpp updated accordingly. Logic is preserved verbatim (exists check, RequireDestTag flag check, tesSUCCESS fallthrough), includes are correctly pruned (TER.h no longer needed in the two files that dropped the free function), and no behavior change is introduced. No issues found.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
1d82d79 to
73e04ca
Compare
73e04ca to
67f49c2
Compare
Replace the entry-taking checkDestinationAndTag free function with the const member AccountRootEntry::checkDestinationAndTag(hasDestinationTag). The body is short, so it is inline in the header.
67f49c2 to
95323ed
Compare
There was a problem hiding this comment.
Clean, mechanical refactor moving checkDestinationAndTag from a free function in AccountRootHelpers to a const member on AccountRootEntry, with the single caller in View.cpp updated accordingly. Logic is preserved verbatim (same checks, same return codes), and unused includes (TER.h) are correctly dropped from files that no longer need them. No behavioral change, no issues found.
…adari/rearch/accountroot-checkDestinationAndTag # Conflicts: # src/libxrpl/ledger/View.cpp
…adari/rearch/accountroot-checkDestinationAndTag
…adari/rearch/accountroot-checkDestinationAndTag
|
This PR has conflicts, please resolve them in order for the PR to be reviewed. |
…adari/rearch/accountroot-checkDestinationAndTag
|
All conflicts have been resolved. Assigned reviewers can now start or resume their review. |
High Level Overview of Change
Replaces the entry-taking
checkDestinationAndTag(AccountRootEntryR const& toSle, bool hasDestinationTag)free function with the const memberAccountRootEntry::checkDestinationAndTag(bool hasDestinationTag). The body is short, so it is inline in the header. The only caller iscanWithdrawinView.cpp.Context of Change
Part of the Wrapped SLEs migration (design: step 2/3 of #7886). The check now lives on the typed entry, so it cannot be called with an SLE of the wrong type. Pure refactor: no amendment, no behavior change; any observable difference is a bug.
Stacked on #8436; 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) every changed.cppand every.cppthat includesAccountRootEntry.horAccountRootHelpers.h(98/98 passed). clang-tidy clean on all changed files and headers; pre-commit clean. No new tests. CI runs the full unit test suite.🤖 Generated with Claude Code