Skip to content

Commit

Permalink
(substrate-test) v15: Use v14 parts for the metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
  • Loading branch information
lexnv committed Feb 2, 2023
1 parent b62988f commit 35b8304
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frame-metadata/src/v15.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ pub struct RuntimeMetadataV15 {
/// Type registry containing all types used in the metadata.
pub types: PortableRegistry,
/// Metadata of all the pallets.
pub pallets: Vec<PalletMetadata<PortableForm>>,
pub pallets: Vec<crate::v14::PalletMetadata<PortableForm>>,
/// Metadata of the extrinsic.
pub extrinsic: ExtrinsicMetadata<PortableForm>,
pub extrinsic: crate::v14::ExtrinsicMetadata<PortableForm>,
/// The type of the `Runtime`.
pub ty: <PortableForm as Form>::Type,
/// Metadata of the Runtime API.
Expand All @@ -60,8 +60,8 @@ pub struct RuntimeMetadataV15 {
impl RuntimeMetadataV15 {
/// Create a new instance of [`RuntimeMetadataV15`].
pub fn new(
pallets: Vec<PalletMetadata>,
extrinsic: ExtrinsicMetadata,
pallets: Vec<crate::v14::PalletMetadata>,
extrinsic: crate::v14::ExtrinsicMetadata,
runtime_type: MetaType,
runtime: Vec<TraitMetadata>,
) -> Self {
Expand Down

0 comments on commit 35b8304

Please sign in to comment.