diff --git a/frame-metadata/src/v13.rs b/frame-metadata/src/v13.rs index 6e1d928..39102bc 100644 --- a/frame-metadata/src/v13.rs +++ b/frame-metadata/src/v13.rs @@ -134,7 +134,7 @@ pub struct ModuleMetadata { pub storage: Option>, pub calls: Option>>, pub event: Option>>, - pub constants: Option>>, + pub constants: Vec>, pub errors: Vec>, /// Define the index of the module, this index will be used for the encoding of module event, /// call and origin variants. @@ -150,9 +150,7 @@ impl IntoPortable for ModuleMetadata { storage: self.storage.map(|storage| storage.into_portable(registry)), calls: self.calls.map(|calls| registry.map_into_portable(calls)), event: self.event.map(|event| registry.map_into_portable(event)), - constants: self - .constants - .map(|constant| registry.map_into_portable(constant)), + constants: registry.map_into_portable(self.constants), errors: registry.map_into_portable(self.errors), index: self.index, }