Skip to content

chore: swap aptos state loading funcs with cld-changesets#22312

Draft
ecPablo wants to merge 1 commit intodevelopfrom
ecpablo/remove-aptos-state-funcs
Draft

chore: swap aptos state loading funcs with cld-changesets#22312
ecPablo wants to merge 1 commit intodevelopfrom
ecpablo/remove-aptos-state-funcs

Conversation

@ecPablo
Copy link
Copy Markdown
Contributor

@ecPablo ecPablo commented May 5, 2026

Removes aptos state loading files and usages swapping it with cld-changesets.

AI Summary

This pull request refactors how MCMS addresses for Aptos chains are loaded by removing the local implementation and switching to a shared utility. The main goal is to reduce code duplication and centralize the logic for fetching MCMS addresses for Aptos, improving maintainability.

Key changes:

Refactoring and Code Reuse

  • Removed the local implementation of LoadMCMSAddressesAptos from deployment/common/changeset/state/aptos.go, deleting the entire file.
  • Updated imports in set_config_mcms.go to use aptosstate.LoadMCMSAddresses from the shared cld-changesets package instead of the deleted local version.

Usage Updates

  • Replaced all calls to the old LoadMCMSAddressesAptos function in set_config_mcms.go with the new shared function, ensuring all MCMS address loading for Aptos now uses the centralized implementation. [1] [2]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

✅ No conflicts with other open PRs targeting develop

@cl-sonarqube-production
Copy link
Copy Markdown

@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented May 5, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

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.

1 participant