This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Support using the extensions in the genesis build #14541
Labels
J0-enhancement
An additional feature request.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
We would like to use
sp_io::misc::read_version
to read the runtime version from the wasm blob in the genesis build, which unfortunately runs into an error that the extension is unavailable at that time. It turns outBasicExternality
which has no extensions registered is used in the genesis build. The workaround for now is to avoid using any extension functionality at genesis, but it's a generally nice-to-have feature that will be beneficial to the entire community IMO.substrate/frame/support/procedural/src/construct_runtime/expand/config.rs
Line 93 in 3fee5c7
Request
Use a more proper externality with all extensions registered in the production env for the genesis build. The alternative is to add a way to allow users to register the extension as needed on their own.
Solution
No response
Are you willing to help with this request?
Yes!
The text was updated successfully, but these errors were encountered: