Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 50d8ea0

Browse files
gilescoperuseinovjoepetrowski
authored andcommitted
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: Roman Useinov <roman.useinov@gmail.com> Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
1 parent afe1621 commit 50d8ea0

File tree

7 files changed

+8
-2
lines changed

7 files changed

+8
-2
lines changed

parachains/runtimes/assets/statemine/src/xcm_config.rs

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
171171
}
172172

173173
match call {
174+
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
174175
RuntimeCall::System(
175176
frame_system::Call::set_heap_pages { .. } |
176177
frame_system::Call::set_code { .. } |

parachains/runtimes/assets/statemint/src/xcm_config.rs

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
171171
}
172172

173173
match call {
174+
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
174175
RuntimeCall::System(
175176
frame_system::Call::set_heap_pages { .. } |
176177
frame_system::Call::set_code { .. } |

parachains/runtimes/assets/westmint/src/xcm_config.rs

+1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
166166
}
167167

168168
match call {
169+
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
169170
RuntimeCall::System(
170171
frame_system::Call::set_heap_pages { .. } |
171172
frame_system::Call::set_code { .. } |

parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/xcm_config.rs

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
128128
}
129129

130130
match call {
131+
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
131132
RuntimeCall::System(
132133
frame_system::Call::set_heap_pages { .. } |
133134
frame_system::Call::set_code { .. } |

parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/xcm_config.rs

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
128128
}
129129

130130
match call {
131+
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
131132
RuntimeCall::System(
132133
frame_system::Call::set_heap_pages { .. } |
133134
frame_system::Call::set_code { .. } |

parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/xcm_config.rs

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
128128
}
129129

130130
match call {
131+
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
131132
RuntimeCall::System(
132133
frame_system::Call::set_heap_pages { .. } |
133134
frame_system::Call::set_code { .. } |

parachains/runtimes/collectives/collectives-polkadot/src/xcm_config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
151151
pallet_collator_selection::Call::leave_intent { .. },
152152
) |
153153
RuntimeCall::Session(pallet_session::Call::purge_keys { .. }) |
154+
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) |
154155
RuntimeCall::XcmpQueue(..) |
155156
RuntimeCall::DmpQueue(..) |
156157
RuntimeCall::Utility(pallet_utility::Call::as_derivative { .. }) |
@@ -178,8 +179,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
178179
pallet_collective::Call::close_old_weight { .. } |
179180
pallet_collective::Call::disapprove_proposal { .. } |
180181
pallet_collective::Call::close { .. },
181-
) |
182-
RuntimeCall::PolkadotXcm(pallet_xcm::Call::force_xcm_version { .. }) => true,
182+
) => true,
183183
_ => false,
184184
}
185185
}

0 commit comments

Comments
 (0)