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

Originally posted by @shawntabrizi in

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.


duplicate of

© 2022 - All rights reserved.