Skip to content

Commit

Permalink
add missing migration
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniscalchi committed Sep 13, 2024
1 parent 7701438 commit ed08db0
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion runtime/laos/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,22 @@
// along with LAOS. If not, see <http://www.gnu.org/licenses/>.

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<Runtime>,);
pub type Migrations = (
cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
);

impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
type ChannelList = EmptyChannelList;
}

pub struct EmptyChannelList;
impl ListChannelInfos for EmptyChannelList {
fn outgoing_channels() -> Vec<ParaId> {
// No outgoing channels
Vec::new()
}
}

0 comments on commit ed08db0

Please sign in to comment.