diff --git a/frame-metadata/src/v14.rs b/frame-metadata/src/v14.rs index 2592a9b..b4073b0 100644 --- a/frame-metadata/src/v14.rs +++ b/frame-metadata/src/v14.rs @@ -33,9 +33,6 @@ use scale_info::{ /// Current prefix of metadata pub const META_RESERVED: u32 = 0x6174656d; // 'meta' warn endianness -/// Type alias placeholder for `ByteGetter` equivalent. todo: [AJ] figure out what to do here -pub type ByteGetter = Vec; - pub type RuntimeMetadataLastVersion = RuntimeMetadataV14; impl From for super::RuntimeMetadataPrefixed { @@ -45,8 +42,7 @@ impl From for super::RuntimeMetadataPrefixed { } /// The metadata of a runtime. -// todo: [AJ] add back clone derive if required (requires PortableRegistry to implement clone) -#[derive(PartialEq, Eq, Encode)] +#[derive(Clone, PartialEq, Eq, Encode)] #[cfg_attr(feature = "std", derive(Decode, Serialize, Debug))] pub struct RuntimeMetadataV14 { pub types: PortableRegistry, @@ -192,7 +188,7 @@ pub struct StorageEntryMetadata { pub name: T::String, pub modifier: StorageEntryModifier, pub ty: StorageEntryType, - pub default: ByteGetter, + pub default: Vec, pub documentation: Vec, } @@ -399,7 +395,7 @@ impl IntoPortable for PalletEventMetadata { pub struct PalletConstantMetadata { pub name: T::String, pub ty: T::Type, - pub value: ByteGetter, + pub value: Vec, pub documentation: Vec, }