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

This commit is contained in:
Shaun Wang
2021-02-27 08:12:57 +13:00
committed by GitHub
parent 6b38755ec4
commit 9535ee26ab
2 changed files with 14 additions and 11 deletions
+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! {