diff --git a/Cargo.lock b/Cargo.lock index c2d2eb3e9644..85b89466e283 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -27939,7 +27939,6 @@ dependencies = [ "bounded-collections", "derivative", "environmental", - "frame-support 28.0.0", "hex", "hex-literal", "impl-trait-for-tuples", diff --git a/polkadot/xcm/Cargo.toml b/polkadot/xcm/Cargo.toml index 86c7067ad6fa..d5176c0f7ed7 100644 --- a/polkadot/xcm/Cargo.toml +++ b/polkadot/xcm/Cargo.toml @@ -24,7 +24,6 @@ schemars = { default-features = true, optional = true, workspace = true } xcm-procedural = { workspace = true, default-features = true } environmental = { workspace = true } hex-literal = { workspace = true, default-features = true } -frame-support = { workspace = true } [dev-dependencies] sp-io = { workspace = true, default-features = true } @@ -37,7 +36,6 @@ std = [ "bounded-collections/std", "codec/std", "environmental/std", - "frame-support/std", "log/std", "scale-info/std", "serde/std", diff --git a/polkadot/xcm/src/lib.rs b/polkadot/xcm/src/lib.rs index a41a8e797b0f..d8f055aa73f4 100644 --- a/polkadot/xcm/src/lib.rs +++ b/polkadot/xcm/src/lib.rs @@ -26,7 +26,6 @@ extern crate alloc; use codec::{Decode, DecodeLimit, Encode, Error as CodecError, Input, MaxEncodedLen}; use derivative::Derivative; -use frame_support::dispatch::GetDispatchInfo; use scale_info::TypeInfo; pub mod v3; @@ -326,7 +325,7 @@ pub enum VersionedXcm { V5(v5::Xcm), } -impl IntoVersion for VersionedXcm { +impl IntoVersion for VersionedXcm { fn into_version(self, n: Version) -> Result { Ok(match n { 3 => Self::V3(self.try_into()?), @@ -382,7 +381,7 @@ impl From> for VersionedXcm { } } -impl TryFrom> for v3::Xcm { +impl TryFrom> for v3::Xcm { type Error = (); fn try_from(x: VersionedXcm) -> Result { use VersionedXcm::*; @@ -397,7 +396,7 @@ impl TryFrom> for v3::Xcm TryFrom> for v4::Xcm { +impl TryFrom> for v4::Xcm { type Error = (); fn try_from(x: VersionedXcm) -> Result { use VersionedXcm::*; @@ -409,7 +408,7 @@ impl TryFrom> for v4::Xcm TryFrom> for v5::Xcm { +impl TryFrom> for v5::Xcm { type Error = (); fn try_from(x: VersionedXcm) -> Result { use VersionedXcm::*; @@ -427,7 +426,7 @@ impl TryFrom> for v5::Xcm( + fn wrap_version( dest: &latest::Location, xcm: impl Into>, ) -> Result, ()>; @@ -460,7 +459,7 @@ impl WrapVersion for () { /// wrapping it. pub struct AlwaysV3; impl WrapVersion for AlwaysV3 { - fn wrap_version( + fn wrap_version( _: &latest::Location, xcm: impl Into>, ) -> Result, ()> { @@ -477,7 +476,7 @@ impl GetVersion for AlwaysV3 { /// wrapping it. pub struct AlwaysV4; impl WrapVersion for AlwaysV4 { - fn wrap_version( + fn wrap_version( _: &latest::Location, xcm: impl Into>, ) -> Result, ()> { @@ -494,7 +493,7 @@ impl GetVersion for AlwaysV4 { /// wrapping it. pub struct AlwaysV5; impl WrapVersion for AlwaysV5 { - fn wrap_version( + fn wrap_version( _: &latest::Location, xcm: impl Into>, ) -> Result, ()> {