From cd620a21cbbce0f5bcd57e9ff8f93f937da5118e Mon Sep 17 00:00:00 2001 From: Anthony Kveder Date: Mon, 14 Jul 2025 13:00:38 +0200 Subject: [PATCH 1/4] Fixed westend asset hub ID --- .../parachains/runtimes/assets/asset-hub-westend/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs index a0ed7ac2840ec..152318940a2e1 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs @@ -1715,6 +1715,12 @@ pallet_revive::impl_runtime_apis_plus_revive!( } } + impl cumulus_primitives_core::GetParachainInfo for Runtime { + fn parachain_id() -> ParaId { + ParachainInfo::parachain_id() + } + } + impl cumulus_primitives_aura::AuraUnincludedSegmentApi for Runtime { fn can_build_upon( included_hash: ::Hash, From 8412cb00ab7a927185cfb7e543086382a038c2ef Mon Sep 17 00:00:00 2001 From: Anthony Kveder Date: Mon, 14 Jul 2025 13:16:45 +0200 Subject: [PATCH 2/4] Fix format --- cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs index 152318940a2e1..137f1406faafe 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs @@ -1720,7 +1720,7 @@ pallet_revive::impl_runtime_apis_plus_revive!( ParachainInfo::parachain_id() } } - + impl cumulus_primitives_aura::AuraUnincludedSegmentApi for Runtime { fn can_build_upon( included_hash: ::Hash, From 5ac13ac486d557cdd67a6ca551b84ef1d50f0866 Mon Sep 17 00:00:00 2001 From: Anthony Kveder Date: Mon, 14 Jul 2025 13:53:11 +0200 Subject: [PATCH 3/4] Added prdoc --- prdoc/pr_9191.prdoc | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 prdoc/pr_9191.prdoc diff --git a/prdoc/pr_9191.prdoc b/prdoc/pr_9191.prdoc new file mode 100644 index 0000000000000..98486f84207d8 --- /dev/null +++ b/prdoc/pr_9191.prdoc @@ -0,0 +1,8 @@ +title: Fixed westend asset hub ID +doc: +- audience: Runtime Dev + description: |- + Added cumulus_primitives_core::GetParachainInfo impl to the AHW runtime to get the parachain ID. +crates: +- name: asset-hub-westend-runtime + bump: patch \ No newline at end of file From b810122f44448c911cf0bf62b3abd9308780cf3c Mon Sep 17 00:00:00 2001 From: Anthony Kveder <32168055+antkve@users.noreply.github.com> Date: Tue, 15 Jul 2025 11:00:51 +0200 Subject: [PATCH 4/4] Update prdoc/pr_9191.prdoc Co-authored-by: Karol Kokoszka --- prdoc/pr_9191.prdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prdoc/pr_9191.prdoc b/prdoc/pr_9191.prdoc index 98486f84207d8..d507fb0e1d284 100644 --- a/prdoc/pr_9191.prdoc +++ b/prdoc/pr_9191.prdoc @@ -5,4 +5,4 @@ doc: Added cumulus_primitives_core::GetParachainInfo impl to the AHW runtime to get the parachain ID. crates: - name: asset-hub-westend-runtime - bump: patch \ No newline at end of file + bump: minor \ No newline at end of file