Skip to content

Conversation

@ecPablo
Copy link
Contributor

@ecPablo ecPablo commented Jan 9, 2026

This pull request introduces improved error handling and validation for the proposal analysis context and EVM registry initialization across the MCMSv2 CLI and EVM analyzer. These changes help prevent misconfiguration and provide clearer guidance to developers when required dependencies are missing.

Validation and error messaging improvements:

  • Added a check in buildMCMSv2AnalyzeProposalCmd to ensure proposalCtxProvider is not nil, returning a descriptive error if missing.
  • Enhanced error handling in newCfgv2 to verify that the proposal context returned by the provider is not nil, with a clear error message for initialization issues.

EVM registry initialization guidance:

  • Improved the error message in AnalyzeEVMTransaction to instruct developers to provide an EVM registry via the ProposalContextProvider with the WithEVMABIMappings() option if it is missing.

@changeset-bot
Copy link

changeset-bot bot commented Jan 9, 2026

⚠️ No Changeset found

Latest commit: fff4a08

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ecPablo ecPablo marked this pull request as ready for review January 12, 2026 13:03
@ecPablo ecPablo requested a review from a team as a code owner January 12, 2026 13:03
Copilot AI review requested due to automatic review settings January 12, 2026 13:03
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 enhances error handling and validation for the MCMSv2 CLI and EVM analyzer by adding checks to ensure proposal context and EVM registry are properly configured, providing clearer error messages to guide developers when required dependencies are missing.

Changes:

  • Added validation to ensure proposalCtxProvider is not nil before use
  • Enhanced error message for missing EVM registry to include configuration guidance
  • Added check to verify proposal context returned by provider is not nil

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
experimental/analyzer/evm_analyzer.go Improved error message for missing EVM registry to include setup instructions
engine/cld/legacy/cli/mcmsv2/mcms_v2.go Added nil checks for proposalCtxProvider and proposalCtx with descriptive error messages

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

@ajaskolski
Copy link
Contributor

nit: @ecPablo you might update these bot suggestions I think it make it a little more grammatical there.

Copilot AI review requested due to automatic review settings January 13, 2026 12:56
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


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

@ecPablo
Copy link
Contributor Author

ecPablo commented Jan 13, 2026

thanks @ajaskolski should be good to go now :)

Copilot AI review requested due to automatic review settings January 13, 2026 12:57
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


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

@cl-sonarqube-production
Copy link

@ecPablo ecPablo enabled auto-merge January 13, 2026 16:00
@ecPablo ecPablo requested a review from ajaskolski January 13, 2026 16:47
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.

2 participants