Skip to content

Commit b61075b

Browse files
[stable2409] Backport #5747 (#5786)
Backport #5747 into `stable2409` from yrong. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Ron <[email protected]>
1 parent c9fbeb7 commit b61075b

4 files changed

Lines changed: 23 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bridge-hub-westend-runtime"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
authors.workspace = true
55
edition.workspace = true
66
description = "Westend's BridgeHub parachain runtime"

cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ use snowbridge_core::{
100100
use testnet_parachains_constants::westend::{consensus::*, currency::*, fee::WeightToFee, time::*};
101101
use xcm::VersionedLocation;
102102

103+
use westend_runtime_constants::system_parachain::{ASSET_HUB_ID, BRIDGE_HUB_ID};
104+
103105
/// The address format for describing accounts.
104106
pub type Address = MultiAddress<AccountId, ()>;
105107

@@ -152,6 +154,11 @@ pub type Migrations = (
152154
>,
153155
// permanent
154156
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
157+
snowbridge_pallet_system::migration::v0::InitializeOnUpgrade<
158+
Runtime,
159+
ConstU32<BRIDGE_HUB_ID>,
160+
ConstU32<ASSET_HUB_ID>,
161+
>,
155162
);
156163

157164
parameter_types! {
@@ -209,7 +216,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
209216
spec_name: create_runtime_str!("bridge-hub-westend"),
210217
impl_name: create_runtime_str!("bridge-hub-westend"),
211218
authoring_version: 1,
212-
spec_version: 1_016_000,
219+
spec_version: 1_016_001,
213220
impl_version: 0,
214221
apis: RUNTIME_API_VERSIONS,
215222
transaction_version: 5,

prdoc/pr_5747.prdoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
title: "Snowbridge runtime migration on Westend"
2+
3+
doc:
4+
- audience: Runtime Dev
5+
description: |
6+
This is a backport for https://github.com/paritytech/polkadot-sdk/pull/5074 which missed
7+
the runtime migration to initialize channels of the bridge.
8+
9+
crates:
10+
- name: bridge-hub-westend-runtime
11+
bump: patch
12+
13+

0 commit comments

Comments
 (0)