mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
fix xcm pallet origin (#3272)
This commit is contained in:
@@ -1474,7 +1474,7 @@ construct_runtime! {
|
|||||||
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>} = 73,
|
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>} = 73,
|
||||||
|
|
||||||
// Pallet for sending XCM.
|
// Pallet for sending XCM.
|
||||||
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>} = 99,
|
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 99,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ construct_runtime! {
|
|||||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 91,
|
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 91,
|
||||||
|
|
||||||
// Pallet for sending XCM.
|
// Pallet for sending XCM.
|
||||||
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>} = 99,
|
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 99,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1072,7 +1072,7 @@ construct_runtime! {
|
|||||||
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>} = 64,
|
Crowdloan: crowdloan::{Pallet, Call, Storage, Event<T>} = 64,
|
||||||
|
|
||||||
// Pallet for sending XCM.
|
// Pallet for sending XCM.
|
||||||
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>} = 99,
|
XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 99,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -262,18 +262,19 @@ pub mod pallet {
|
|||||||
AccountIdConversion::<T::AccountId>::into_account(&ID)
|
AccountIdConversion::<T::AccountId>::into_account(&ID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// Origin for the parachains module.
|
/// Origin for the parachains module.
|
||||||
#[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug)]
|
#[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug)]
|
||||||
pub enum Origin {
|
#[pallet::origin]
|
||||||
/// It comes from somewhere in the XCM space.
|
pub enum Origin {
|
||||||
Xcm(MultiLocation),
|
/// It comes from somewhere in the XCM space.
|
||||||
}
|
Xcm(MultiLocation),
|
||||||
|
}
|
||||||
|
|
||||||
impl From<MultiLocation> for Origin {
|
impl From<MultiLocation> for Origin {
|
||||||
fn from(location: MultiLocation) -> Origin {
|
fn from(location: MultiLocation) -> Origin {
|
||||||
Origin::Xcm(location)
|
Origin::Xcm(location)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user