From 9cfeeeeab8ec01f2acc370e6132adc5ed48cd920 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 13 Jul 2021 11:22:36 +0100 Subject: [PATCH] Abbreviate field names (docs, args) for consistency --- frame-metadata/src/v14.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/frame-metadata/src/v14.rs b/frame-metadata/src/v14.rs index 002701a..05592e4 100644 --- a/frame-metadata/src/v14.rs +++ b/frame-metadata/src/v14.rs @@ -192,7 +192,7 @@ pub struct StorageEntryMetadata { pub modifier: StorageEntryModifier, pub ty: StorageEntryType, pub default: Vec, - pub documentation: Vec, + pub docs: Vec, } impl IntoPortable for StorageEntryMetadata { @@ -204,7 +204,7 @@ impl IntoPortable for StorageEntryMetadata { modifier: self.modifier, ty: self.ty.into_portable(registry), default: self.default, - documentation: registry.map_into_portable(self.documentation), + docs: registry.map_into_portable(self.docs), } } } @@ -328,8 +328,8 @@ impl IntoPortable for PalletCallMetadata { )] pub struct FunctionMetadata { pub name: T::String, - pub arguments: Vec>, - pub documentation: Vec, + pub args: Vec>, + pub docs: Vec, } impl IntoPortable for FunctionMetadata { @@ -338,8 +338,8 @@ impl IntoPortable for FunctionMetadata { fn into_portable(self, registry: &mut Registry) -> Self::Output { FunctionMetadata { name: self.name.into_portable(registry), - arguments: registry.map_into_portable(self.arguments), - documentation: registry.map_into_portable(self.documentation), + args: registry.map_into_portable(self.args), + docs: registry.map_into_portable(self.docs), } } } @@ -391,7 +391,7 @@ pub struct PalletConstantMetadata { pub name: T::String, pub ty: T::Type, pub value: Vec, - pub documentation: Vec, + pub docs: Vec, } impl IntoPortable for PalletConstantMetadata { @@ -402,7 +402,7 @@ impl IntoPortable for PalletConstantMetadata { name: self.name.into_portable(registry), ty: registry.register_type(&self.ty), value: self.value, - documentation: registry.map_into_portable(self.documentation), + docs: registry.map_into_portable(self.docs), } } }