Allow (temporary) Statemine send xcm messages

This commit is contained in:
Branislav Kontur
2023-01-04 12:32:43 +01:00
parent 2ff5c4fb4f
commit 18ad58b87b
@@ -236,7 +236,9 @@ pub type XcmRouter = (
impl pallet_xcm::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
// We want to disallow users sending (arbitrary) XCMs from this chain.
type SendXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, ()>;
// TODO:check-parameter - temporary fix - allow send XCM messages from here
// TODO:check-parameter - after xcm-v3 rebase, fix/add/find_out kind of filter to allow sending just to BridgeHub?
type SendXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
type XcmRouter = XcmRouter;
// We support local origins dispatching XCM executions in principle...
type ExecuteXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;