Abbreviate field names (docs, args) for consistency

This commit is contained in:
Andrew Jones
2021-07-13 11:22:36 +01:00
parent aa74d7a644
commit 9cfeeeeab8
+8 -8
View File
@@ -192,7 +192,7 @@ pub struct StorageEntryMetadata<T: Form = MetaForm> {
pub modifier: StorageEntryModifier,
pub ty: StorageEntryType<T>,
pub default: Vec<u8>,
pub documentation: Vec<T::String>,
pub docs: Vec<T::String>,
}
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<T: Form = MetaForm> {
pub name: T::String,
pub arguments: Vec<FunctionArgumentMetadata<T>>,
pub documentation: Vec<T::String>,
pub args: Vec<FunctionArgumentMetadata<T>>,
pub docs: Vec<T::String>,
}
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<T: Form = MetaForm> {
pub name: T::String,
pub ty: T::Type,
pub value: Vec<u8>,
pub documentation: Vec<T::String>,
pub docs: Vec<T::String>,
}
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),
}
}
}