From cde4bc1218ee280c0fc93e5cbf4888e8d37e0e67 Mon Sep 17 00:00:00 2001 From: nasihudeen04 Date: Sat, 18 Jul 2026 09:49:46 +0100 Subject: [PATCH 1/3] Remove deprecated RuntimeHelper::execute_as_governance. Deprecated after August 2025 in favor of execute_as_governance_call; no remaining callers in-repo. --- .../parachains/runtimes/test-utils/src/lib.rs | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/cumulus/parachains/runtimes/test-utils/src/lib.rs b/cumulus/parachains/runtimes/test-utils/src/lib.rs index abbaead9ea86..735386a9b24d 100644 --- a/cumulus/parachains/runtimes/test-utils/src/lib.rs +++ b/cumulus/parachains/runtimes/test-utils/src/lib.rs @@ -463,33 +463,6 @@ impl< AllPalletsWithoutSystem, > RuntimeHelper { - #[deprecated( - note = "Will be removed after Aug 2025; It uses hard-coded `Location::parent()`, \ - use `execute_as_governance_call` instead." - )] - pub fn execute_as_governance(call: Vec) -> Outcome { - // prepare xcm as governance will do - let xcm = Xcm(vec![ - UnpaidExecution { weight_limit: Unlimited, check_origin: None }, - Transact { - origin_kind: OriginKind::Superuser, - call: call.into(), - fallback_max_weight: None, - }, - ExpectTransactStatus(MaybeErrorCode::Success), - ]); - - // execute xcm as parent origin - let mut hash = xcm.using_encoded(sp_io::hashing::blake2_256); - <::XcmExecutor>::prepare_and_execute( - Location::parent(), - xcm, - &mut hash, - Self::xcm_max_weight(XcmReceivedFrom::Parent), - Weight::zero(), - ) - } - pub fn execute_as_governance_call( call: Call, governance_origin: GovernanceOrigin, From 3cc9760efb0524fd548f7489d3e79c6cac036969 Mon Sep 17 00:00:00 2001 From: "cmd[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 Jul 2026 08:53:11 +0000 Subject: [PATCH 2/3] Update from github-actions[bot] running command 'prdoc --audience runtime_dev --bump major' --- prdoc/pr_12682.prdoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 prdoc/pr_12682.prdoc diff --git a/prdoc/pr_12682.prdoc b/prdoc/pr_12682.prdoc new file mode 100644 index 000000000000..742e0172ae86 --- /dev/null +++ b/prdoc/pr_12682.prdoc @@ -0,0 +1,13 @@ +title: Remove deprecated RuntimeHelper::execute_as_governance +doc: +- audience: Runtime Dev + description: |- + ## Summary + + - Remove `RuntimeHelper::execute_as_governance` (deprecated after August 2025). + - Callers should use `execute_as_governance_call` instead; no remaining in-repo usages. + + Part of #11561 +crates: +- name: parachains-runtimes-test-utils + bump: major From 0f70b99dcab5b1be93accb2bcd3c9d29bfb651a9 Mon Sep 17 00:00:00 2001 From: Nasihudeen Jimoh Date: Sat, 18 Jul 2026 09:54:53 +0100 Subject: [PATCH 3/3] clean prdoc --- prdoc/pr_12682.prdoc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/prdoc/pr_12682.prdoc b/prdoc/pr_12682.prdoc index 742e0172ae86..24ad3a8a908a 100644 --- a/prdoc/pr_12682.prdoc +++ b/prdoc/pr_12682.prdoc @@ -4,10 +4,8 @@ doc: description: |- ## Summary - - Remove `RuntimeHelper::execute_as_governance` (deprecated after August 2025). + - Removes `RuntimeHelper::execute_as_governance` (deprecated after August 2025). - Callers should use `execute_as_governance_call` instead; no remaining in-repo usages. - - Part of #11561 crates: - name: parachains-runtimes-test-utils bump: major