Skip to content

Commit 8c1efb5

Browse files
committed
Perform pre xcm-v5 migration first
1 parent 3a1b89c commit 8c1efb5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/check-runtime-upgrade.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
# Store the command in a variable so we can log it
144144
COMMAND="./try-runtime \
145145
--runtime $RUNTIME_BLOB_PATH \
146-
on-runtime-upgrade --disable-mbm-checks --blocktime 12000000 \
146+
on-runtime-upgrade --disable-mbm-checks --blocktime 12000 \
147147
live --uri ${{ matrix.runtime.uri }}"
148148
149149
# Echo the command before running it, for debugging purposes

parachain/runtime/heima/src/lib.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ pub type CheckedExtrinsic =
144144
/// The payload being signed in transactions.
145145
pub type SignedPayload = generic::SignedPayload<RuntimeCall, SignedExtra>;
146146

147+
/// Migrations to apply on runtime upgrade.
148+
pub type Migrations = (
149+
// permanent
150+
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
151+
);
152+
147153
/// Executive: handles dispatch to the various modules.
148154
pub type Executive = frame_executive::Executive<
149155
Runtime,
@@ -157,6 +163,7 @@ pub type Executive = frame_executive::Executive<
157163
// It was reverse order before.
158164
// See the comment before collation related pallets too.
159165
AllPalletsWithSystem,
166+
Migrations,
160167
>;
161168

162169
impl fp_self_contained::SelfContainedCall for RuntimeCall {
@@ -231,7 +238,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
231238
impl_name: create_runtime_str!("heima"),
232239
authoring_version: 1,
233240
// same versioning-mechanism as polkadot: use last digit for minor updates
234-
spec_version: 9242,
241+
spec_version: 9243,
235242
impl_version: 0,
236243
apis: RUNTIME_API_VERSIONS,
237244
transaction_version: 2,

0 commit comments

Comments
 (0)