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:
Giuseppe Re
2025-02-20 14:49:05 +01:00
committed by GitHub
parent 88889a0c89
commit 35bfff2a78
+4 -1
View File
@@ -98,8 +98,10 @@ pub struct RuntimeApiMetadata<T: Form = MetaForm> {
pub methods: Vec<RuntimeApiMethodMetadata<T>>,
/// Trait documentation.
pub docs: Vec<T::String>,
/// Deprecation info
/// Deprecation info.
pub deprecation_info: DeprecationStatus<T>,
/// Runtime API version.
pub version: u32,
}
impl IntoPortable for RuntimeApiMetadata {
@@ -111,6 +113,7 @@ impl IntoPortable for RuntimeApiMetadata {
methods: registry.map_into_portable(self.methods),
docs: registry.map_into_portable(self.docs),
deprecation_info: self.deprecation_info.into_portable(registry),
version: self.version,
}
}
}