Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename constant to what bridge relayers expect #236

Closed
wants to merge 1 commit into from

Conversation

MRamanenkau
Copy link
Contributor

@MRamanenkau MRamanenkau commented Jan 17, 2024

Description

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Dependency upgrade (A change in substrate or any 3rd party crate version)

Migrations and Hooks

  • This change requires a runtime migration.
  • Modifies on_initialize
  • Modifies on_finalize

Checklist

  • Change has been tested locally.
  • Change adds / updates tests.
  • Changelog doc updated.

Copy link
Contributor

@rakanalh rakanalh left a comment

Choose a reason for hiding this comment

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

You did not need to change all ChainId to ChainIdentity. You just needed to change the one declared as a constant in Config trait.

@MRamanenkau
Copy link
Contributor Author

MRamanenkau commented Jan 17, 2024

You did not need to change all ChainId to ChainIdentity. You just needed to change the one declared as a constant in Config trait.

The other code depends on ChainId not ChainIdentity so to fix the issue and make the code compiled we have 3 ways:

  1. Extend Config with ChainIdentity and from the runtimes set the same value as ChainId.
  2. Replace ChainId with ChainIdentity everywhere.
  3. Try to find a way to set ChainIdentity derived from ChainId without passing from the runtimes.

In DM we agreed on option 2.

@MRamanenkau
Copy link
Contributor Author

Moved to #237

@rakanalh rakanalh deleted the fix/rename-chainId-to-dev branch February 24, 2024 20:23
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