Skip to content

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

Merged
fellowship-merge-bot[bot] merged 6 commits into
polkadot-fellows:mainfrom
muharem:muharem-depreate-treasury-xcm-body-index
Feb 20, 2024
Merged

Deprecate xcm::body::TREASURER_INDEX constant, use standard Treasury varian instead#149
fellowship-merge-bot[bot] merged 6 commits into
polkadot-fellows:mainfrom
muharem:muharem-depreate-treasury-xcm-body-index

Conversation

@muharem
Copy link
Copy Markdown
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.

Comment thread relay/polkadot/constants/src/lib.rs Outdated
@muharem muharem mentioned this pull request Feb 2, 2024
19 tasks
@acatangiu
Copy link
Copy Markdown
Contributor

/merge

@fellowship-merge-bot fellowship-merge-bot Bot merged commit cacf8c0 into polkadot-fellows:main Feb 20, 2024
@fellowship-merge-bot
Copy link
Copy Markdown
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