Skip to content
Snippets Groups Projects
Commit c75e1fc0 authored by Squirrel's avatar Squirrel Committed by GitHub
Browse files

Backport: Brigehub: Add in force upgrade xcm version (into master) (#2289)


* Brigehub: Add in force upgrade xcm version.

(Same as assets and collectives)

* [Fix] Allow force_xcm_version call for assets parachains (#2276)

* add force_xcm_version to safe calls (#2284)

* Removing duplication

---------

Co-authored-by: default avatarRoman Useinov <roman.useinov@gmail.com>
Co-authored-by: default avatarjoe petrowski <25483142+joepetrowski@users.noreply.github.com>
parent 6f7beb10
Branches
No related merge requests found
......@@ -162,6 +162,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
}
match call {
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
RuntimeCall::System(
frame_system::Call::set_heap_pages { .. } |
frame_system::Call::set_code { .. } |
......
......@@ -162,6 +162,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
}
match call {
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
RuntimeCall::System(
frame_system::Call::set_heap_pages { .. } |
frame_system::Call::set_code { .. } |
......
......@@ -157,6 +157,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
}
match call {
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
RuntimeCall::System(
frame_system::Call::set_heap_pages { .. } |
frame_system::Call::set_code { .. } |
......
......@@ -128,6 +128,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
}
match call {
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
RuntimeCall::System(
frame_system::Call::set_heap_pages { .. } |
frame_system::Call::set_code { .. } |
......
......@@ -128,6 +128,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
}
match call {
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
RuntimeCall::System(
frame_system::Call::set_heap_pages { .. } |
frame_system::Call::set_code { .. } |
......
......@@ -128,6 +128,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
}
match call {
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
RuntimeCall::System(
frame_system::Call::set_heap_pages { .. } |
frame_system::Call::set_code { .. } |
......
......@@ -151,6 +151,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
pallet_collator_selection::Call::leave_intent { .. },
) |
RuntimeCall::Session(pallet_session::Call::purge_keys { .. }) |
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
RuntimeCall::XcmpQueue(..) |
RuntimeCall::DmpQueue(..) |
RuntimeCall::Utility(pallet_utility::Call::as_derivative { .. }) |
......@@ -178,8 +179,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
pallet_collective::Call::close_old_weight { .. } |
pallet_collective::Call::disapprove_proposal { .. } |
pallet_collective::Call::close { .. },
) |
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) => true,
) => true,
_ => false,
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment