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 #149

Conversation

muharem
Copy link
Contributor

@muharem muharem commented Jan 18, 2024

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

The custom body index is redundant here since the standard Treasury body variant exists. It was overlooked previously, and the index was added by mistake.
Removing the index should not affect anything. It's only used as one of the origins that guards permissioned operations for the fellowship treasury instance and asset rate pallet instance, and not used to derive any account ids.

@muharem muharem mentioned this pull request Feb 2, 2024
19 tasks
@acatangiu
Copy link
Contributor

/merge

@fellowship-merge-bot fellowship-merge-bot bot merged commit cacf8c0 into polkadot-fellows:main Feb 20, 2024
29 checks passed
@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

Bullrich pushed a commit to paritytech-stg/runtimes that referenced this pull request Feb 22, 2024
…ry` varian instead (polkadot-fellows#149)

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

The custom body index is redundant here since the standard `Treasury`
body variant exists. It was overlooked previously, and the index was
added by mistake.
Removing the index should not affect anything. It's only used as one of
the origins that guards permissioned operations for the fellowship
treasury instance and asset rate pallet instance, and not used to derive
any account ids.
github-merge-queue bot pushed a commit to paritytech/polkadot-sdk that referenced this pull request Mar 7, 2024
…varian instead (#3608)

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
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