fix xcm pallet origin (#3272)

This commit is contained in:
Shawn Tabrizi
2021-06-16 21:57:29 +01:00
committed by GitHub
parent 462ca043e5
commit 0282ad3128
4 changed files with 14 additions and 13 deletions
+11 -10
View File
@@ -262,18 +262,19 @@ pub mod pallet {
AccountIdConversion::<T::AccountId>::into_account(&ID)
}
}
}
/// Origin for the parachains module.
#[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug)]
pub enum Origin {
/// It comes from somewhere in the XCM space.
Xcm(MultiLocation),
}
/// Origin for the parachains module.
#[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug)]
#[pallet::origin]
pub enum Origin {
/// It comes from somewhere in the XCM space.
Xcm(MultiLocation),
}
impl From<MultiLocation> for Origin {
fn from(location: MultiLocation) -> Origin {
Origin::Xcm(location)
impl From<MultiLocation> for Origin {
fn from(location: MultiLocation) -> Origin {
Origin::Xcm(location)
}
}
}