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

Originally posted by @shawntabrizi in https://github.com/paritytech/polkadot/pull/5582#discussion_r942502407

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.

0

duplicate of https://github.com/paritytech/substrate/issues/8373

0
© 2022 pullanswer.com - All rights reserved.