Skip to content

fix: resolve refs for update MCMS config changeset#2011

Merged
chris-de-leon-cll merged 1 commit intomainfrom
fix/resolve-refs-for-update-mcms-config
Apr 27, 2026
Merged

fix: resolve refs for update MCMS config changeset#2011
chris-de-leon-cll merged 1 commit intomainfrom
fix/resolve-refs-for-update-mcms-config

Conversation

@chris-de-leon-cll
Copy link
Copy Markdown
Collaborator

@chris-de-leon-cll chris-de-leon-cll commented Apr 27, 2026

The UpdateMCMSConfig changeset has code that resolves refs, but it never writes it back to the sequence input. As a result, all downstream adapter implementations get the unresolved refs. This fix ensures that the resolved refs get properly passed down, so that no extra workarounds are needed in CLD. The existing test cases did not catch this because they always use fully resolved refs (e.g. datastore_utils.FindAndFormatRef).

@chris-de-leon-cll chris-de-leon-cll self-assigned this Apr 27, 2026
@github-actions
Copy link
Copy Markdown

Metric fix/resolve-refs-for-update-mcms-config main
Coverage 70.1% 69.8%

@chris-de-leon-cll chris-de-leon-cll marked this pull request as ready for review April 27, 2026 23:25
Copilot AI review requested due to automatic review settings April 27, 2026 23:25
@chris-de-leon-cll chris-de-leon-cll requested review from a team as code owners April 27, 2026 23:25
Copy link
Copy Markdown
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

Fixes UpdateMCMSConfig so that contract refs are resolved to full refs and actually passed into the per-chain sequence input, ensuring downstream adapters receive resolved addresses (instead of needing workarounds).

Changes:

  • Write resolved MCMContracts refs back onto the per-chain config before executing the update sequence.
  • Update the EVM adapter test to use partial refs (type/qualifier/version only) to validate the resolution logic.
  • Correct the test’s contract type lookups for bypasser/proposer refs.

Reviewed changes

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

File Description
deployment/deploy/mcms.go Ensures resolved MCMS contract refs are propagated into the sequence input.
chains/evm/deployment/v1_0_0/adapters/deployer_test.go Strengthens coverage by passing partial refs and fixing the bypasser/proposer ref types.

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

@chris-de-leon-cll chris-de-leon-cll added this pull request to the merge queue Apr 27, 2026
Merged via the queue into main with commit c63d3dd Apr 27, 2026
62 checks passed
@chris-de-leon-cll chris-de-leon-cll deleted the fix/resolve-refs-for-update-mcms-config branch April 27, 2026 23:55
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.

4 participants