Skip to content

Remove deprecated GenesisBuild trait.#12529

Open
Kanasjnr wants to merge 7 commits into
paritytech:masterfrom
Kanasjnr:kanas/remove-genesis-build
Open

Remove deprecated GenesisBuild trait.#12529
Kanasjnr wants to merge 7 commits into
paritytech:masterfrom
Kanasjnr:kanas/remove-genesis-build

Conversation

@Kanasjnr

@Kanasjnr Kanasjnr commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Removed the deprecated GenesisBuild trait from frame_support::traits
  • Dropped the re-export and macro support for GenesisBuild<T> / GenesisBuild<T, I>
  • Pallet #[pallet::genesis_build] now only accepts BuildGenesisConfig
  • Updated docs and UI test expectations accordingly

Part of #11561

Migration

If you still use the old genesis build syntax:

// Before
impl<T: Config> GenesisBuild<T> for GenesisConfig<T> { ... }

// After
impl<T: Config> BuildGenesisConfig for GenesisConfig<T> { ... }

BuildStorage / assimilate_storage for genesis configs is still generated by the pallet macro only the trait name changes.

Use BuildGenesisConfig for pallet genesis builds; drop legacy trait,
re-export, and macro support.
@Kanasjnr Kanasjnr requested a review from a team as a code owner July 1, 2026 16:04
@Kanasjnr

Kanasjnr commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

/cmd prdoc --audience runtime_dev --bump major

@Kanasjnr

Kanasjnr commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

/cmd label T13-deprecation

@paritytech-cmd-bot-polkadot-sdk paritytech-cmd-bot-polkadot-sdk Bot added the T13-deprecation The current issue/pr is, or should be, part of a deprecation process. label Jul 1, 2026
@bkontur

bkontur commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

@Kanasjnr please check https://github.com/paritytech/polkadot-sdk/actions/runs/28531804382/job/84598850036?pr=12529#step:4:878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T13-deprecation The current issue/pr is, or should be, part of a deprecation process.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants