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, diff --git a/prdoc/pr_12682.prdoc b/prdoc/pr_12682.prdoc new file mode 100644 index 000000000000..24ad3a8a908a --- /dev/null +++ b/prdoc/pr_12682.prdoc @@ -0,0 +1,11 @@ +title: Remove deprecated RuntimeHelper::execute_as_governance +doc: +- audience: Runtime Dev + description: |- + ## Summary + + - Removes `RuntimeHelper::execute_as_governance` (deprecated after August 2025). + - Callers should use `execute_as_governance_call` instead; no remaining in-repo usages. +crates: +- name: parachains-runtimes-test-utils + bump: major