This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
construct_runtime!
should generate ModuleToString
#5148
Labels
J0-enhancement
An additional feature request.
Z2-medium
Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
It is likely we will not be able to get this done in time for merging: #5010
However, long term, we should have the
construct_runtime!
macro generate aModuleToString
type in each module's configuration trait.This will be set to whatever string the user uses when configuring their runtime. i.e. :
Would generate a
ModuleToString
of"TemplateModule"
.This value should then automatically get used by the
decl_storage
macro.Additionally, we could use this value for populating unique
MODULE_ID
s. For example:The text was updated successfully, but these errors were encountered: