Skip to content
Snippets Groups Projects
Commit e24b18f8 authored by Amaury Martiny's avatar Amaury Martiny Committed by thiolliere
Browse files

Remove remains from metadata v0 (#2610)

* Remove rests for metadata v0

* bump impl_version
parent 7e525dc6
No related merge requests found
......@@ -59,7 +59,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
impl_name: create_runtime_str!("substrate-node"),
authoring_version: 10,
spec_version: 80,
impl_version: 81,
impl_version: 82,
apis: RUNTIME_API_VERSIONS,
};
......
......@@ -292,22 +292,6 @@ pub enum StorageFunctionModifier {
Default,
}
/// All metadata about the outer dispatch.
#[derive(Clone, PartialEq, Eq, Encode)]
#[cfg_attr(feature = "std", derive(Decode, Debug, Serialize))]
pub struct OuterDispatchMetadata {
pub name: DecodeDifferentStr,
pub calls: DecodeDifferentArray<OuterDispatchCall>,
}
/// A Call from the outer dispatch.
#[derive(Clone, PartialEq, Eq, Encode)]
#[cfg_attr(feature = "std", derive(Decode, Debug, Serialize))]
pub struct OuterDispatchCall {
pub name: DecodeDifferentStr,
pub index: u16,
}
#[derive(Eq, Encode, PartialEq)]
#[cfg_attr(feature = "std", derive(Decode, Debug, Serialize))]
/// Metadata prefixed by a u32 for reserved usage
......
......@@ -22,10 +22,7 @@ pub use crate::rstd::prelude::{Vec, Clone, Eq, PartialEq};
pub use std::fmt;
pub use crate::rstd::result;
pub use crate::codec::{Codec, Decode, Encode, Input, Output, HasCompact, EncodeAsRef};
pub use srml_metadata::{
FunctionMetadata, DecodeDifferent, DecodeDifferentArray,
FunctionArgumentMetadata, OuterDispatchMetadata, OuterDispatchCall
};
pub use srml_metadata::{FunctionMetadata, DecodeDifferent, DecodeDifferentArray, FunctionArgumentMetadata};
/// A type that cannot be instantiated.
pub enum Never {}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment