Skip to content

Refactor transaction validation into helper methods#1724

Merged
StuartFerguson merged 2 commits intomasterfrom
refactor/#1693_validatestarttransactionarguments_complexity
Apr 8, 2026
Merged

Refactor transaction validation into helper methods#1724
StuartFerguson merged 2 commits intomasterfrom
refactor/#1693_validatestarttransactionarguments_complexity

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Refactored the transaction parameter validation logic by extracting context and core field checks into private helper methods (ValidateContext and ValidateCoreFields). This improves code readability, maintainability, and separation of concerns.

closes #1693

Refactored the transaction parameter validation logic by extracting context and core field checks into private helper methods (ValidateContext and ValidateCoreFields). This improves code readability, maintainability, and separation of concerns.
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 5 complexity · 0 duplication

Metric Results
Complexity 5
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@StuartFerguson StuartFerguson merged commit 69778a7 into master Apr 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Complexity] Method TransactionAggregateExtensions::ValidateStartTransactionArguments has a cyclomatic complexity of 9 (limit is 8)

1 participant