mirror of
https://github.com/pezkuwichain/pezframe-metadata.git
synced 2026-06-19 14:31:03 +00:00
Add Runtime Api version to v16 (#92)
* Add Runtime Api version * remove `Compact` * revert v16 version number to `u32::max`
This commit is contained in:
@@ -98,8 +98,10 @@ pub struct RuntimeApiMetadata<T: Form = MetaForm> {
|
|||||||
pub methods: Vec<RuntimeApiMethodMetadata<T>>,
|
pub methods: Vec<RuntimeApiMethodMetadata<T>>,
|
||||||
/// Trait documentation.
|
/// Trait documentation.
|
||||||
pub docs: Vec<T::String>,
|
pub docs: Vec<T::String>,
|
||||||
/// Deprecation info
|
/// Deprecation info.
|
||||||
pub deprecation_info: DeprecationStatus<T>,
|
pub deprecation_info: DeprecationStatus<T>,
|
||||||
|
/// Runtime API version.
|
||||||
|
pub version: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IntoPortable for RuntimeApiMetadata {
|
impl IntoPortable for RuntimeApiMetadata {
|
||||||
@@ -111,6 +113,7 @@ impl IntoPortable for RuntimeApiMetadata {
|
|||||||
methods: registry.map_into_portable(self.methods),
|
methods: registry.map_into_portable(self.methods),
|
||||||
docs: registry.map_into_portable(self.docs),
|
docs: registry.map_into_portable(self.docs),
|
||||||
deprecation_info: self.deprecation_info.into_portable(registry),
|
deprecation_info: self.deprecation_info.into_portable(registry),
|
||||||
|
version: self.version,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user