Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Standard way to initialize a pallet after genesis #12027

Closed
kianenigma opened this issue Aug 14, 2022 · 1 comment
Closed

Standard way to initialize a pallet after genesis #12027

kianenigma opened this issue Aug 14, 2022 · 1 comment
Labels
J0-enhancement An additional feature request.

Comments

@kianenigma
Copy link
Contributor

in the future probably would be nice to have an initialize function coming from the pallet itself.

Originally posted by @shawntabrizi in paritytech/polkadot#5582 (comment)

Currently, we can easily initiate a pallet in the runtime by using on_runtime_upgrade. This is fine, but we can dp better and create a standard process for this.

Also, in the academy, we realized that the students are quite confused about this and mistakenly think that genesis_build is called upon creation of the pallet, not creation of the whole runtime.

@kianenigma
Copy link
Contributor Author

duplicate of #8373

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J0-enhancement An additional feature request.
Projects
Archived in project
Development

No branches or pull requests

1 participant