From ed08db08a541d52e7c519026ae282db0ab340691 Mon Sep 17 00:00:00 2001 From: Alessandro Siniscalchi Date: Fri, 13 Sep 2024 13:24:23 +0200 Subject: [PATCH] add missing migration --- runtime/laos/src/migrations.rs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/runtime/laos/src/migrations.rs b/runtime/laos/src/migrations.rs index 82e8ff1a..606c0306 100644 --- a/runtime/laos/src/migrations.rs +++ b/runtime/laos/src/migrations.rs @@ -15,5 +15,22 @@ // along with LAOS. If not, see . use crate::Runtime; +use cumulus_primitives_core::{ChannelInfo, ListChannelInfos, ParaId}; +use sp_std::vec::Vec; -pub type Migrations = (cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4,); +pub type Migrations = ( + cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4, + cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5, +); + +impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime { + type ChannelList = EmptyChannelList; +} + +pub struct EmptyChannelList; +impl ListChannelInfos for EmptyChannelList { + fn outgoing_channels() -> Vec { + // No outgoing channels + Vec::new() + } +}