XCM handler: make send origin configurable. (#346)

This commit is contained in:
Shaun Wang authored and GitHub committed 2021-02-26 20:12:57 +01:00
1 parent 6b38755ec4
commit 9535ee26ab
2 files changed
+14 -11

No files matched your search

+2 -1
View File
@@ -46,7 +46,7 @@ pub use frame_support::{
},
StorageValue,
};
use frame_system::limits::{BlockLength, BlockWeights};
use frame_system::{EnsureRoot, limits::{BlockLength, BlockWeights}};
pub use pallet_balances::Call as BalancesCall;
pub use pallet_timestamp::Call as TimestampCall;
#[cfg(any(feature = "std", test))]
@@ -289,6 +289,7 @@ impl cumulus_pallet_xcm_handler::Config for Runtime {
type XcmExecutor = XcmExecutor<XcmConfig>;
type UpwardMessageSender = ParachainSystem;
type HrmpMessageSender = ParachainSystem;
type SendXcmOrigin = EnsureRoot<AccountId>;
}
construct_runtime! {