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

Deprecate xcm::body::TREASURER_INDEX constant, use standard Treasury varian instead #3608

Merged
merged 3 commits into from
Mar 7, 2024

Conversation

muharem
Copy link
Contributor

@muharem muharem commented Mar 7, 2024

Deprecate the xcm::body::TREASURER_INDEX constant and use the standard Treasury variant from the xcm::BodyId type instead.

To align with the production runtimes: polkadot-fellows/runtimes#149

@muharem muharem added R0-silent Changes should not be mentioned in any release notes T9-cumulus This PR/Issue is related to cumulus. labels Mar 7, 2024
@@ -130,6 +130,8 @@ pub mod xcm {
const ROOT_INDEX: u32 = 0;
// The bodies corresponding to the Polkadot OpenGov Origins.
pub const FELLOWSHIP_ADMIN_INDEX: u32 = 1;
#[deprecated = "Will be removed after August 2024; Use `xcm::latest::BodyId::Treasury` \
Copy link
Contributor

Choose a reason for hiding this comment

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

why not just remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

to make sure none uses the same index for the time of deprecation

@muharem muharem requested a review from ggwpez March 7, 2024 11:49
@muharem muharem enabled auto-merge March 7, 2024 14:25
@muharem muharem added this pull request to the merge queue Mar 7, 2024
Merged via the queue into master with commit 629506c Mar 7, 2024
128 of 130 checks passed
@muharem muharem deleted the muharem-deprecate-treasurer-origin-index branch March 7, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T9-cumulus This PR/Issue is related to cumulus.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants