Skip to content

Conversation

@carte7000
Copy link
Contributor

Only load state once in proposal generation

@cl-sonarqube-production
Copy link

@trunk-io
Copy link

trunk-io bot commented Dec 10, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@carte7000 carte7000 marked this pull request as ready for review December 10, 2025 11:28
@carte7000 carte7000 requested a review from a team as a code owner December 10, 2025 11:28
Copilot AI review requested due to automatic review settings December 10, 2025 11:28
@carte7000 carte7000 requested review from a team as code owners December 10, 2025 11:28
@carte7000 carte7000 added this pull request to the merge queue Dec 10, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes proposal generation by eliminating redundant state loading operations. The ValidateMCMS function previously loaded on-chain state internally for each chain, which was inefficient when validating multiple chains. By refactoring it to accept state as a parameter (ValidateMCMSWithState), the state can now be loaded once and reused across all validation calls.

Key changes:

  • Refactored ValidateMCMS to accept state as a parameter, renaming it to ValidateMCMSWithState
  • Removed internal state loading logic from the validation function
  • Updated caller to pass pre-loaded state

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Merged via the queue into develop with commit 2c03493 Dec 10, 2025
211 of 213 checks passed
@carte7000 carte7000 deleted the deployer-group-optimization branch December 10, 2025 11:49
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.

3 participants