From 35bfff2a782d77011089250b97cfa932ca1174b8 Mon Sep 17 00:00:00 2001 From: Giuseppe Re Date: Thu, 20 Feb 2025 14:49:05 +0100 Subject: [PATCH] Add Runtime Api version to v16 (#92) * Add Runtime Api version * remove `Compact` * revert v16 version number to `u32::max` --- frame-metadata/src/v16.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frame-metadata/src/v16.rs b/frame-metadata/src/v16.rs index 375b5d4..a63d430 100644 --- a/frame-metadata/src/v16.rs +++ b/frame-metadata/src/v16.rs @@ -98,8 +98,10 @@ pub struct RuntimeApiMetadata { pub methods: Vec>, /// Trait documentation. pub docs: Vec, - /// Deprecation info + /// Deprecation info. pub deprecation_info: DeprecationStatus, + /// 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, } } }