From eeb29de9affb262e3f76086b652e7301bd427b2a Mon Sep 17 00:00:00 2001 From: hqwangningbo <2536935847@qq.com> Date: Thu, 1 Aug 2024 09:07:16 +0800 Subject: [PATCH] Fix try-runtime --- runtime/bifrost-kusama/src/lib.rs | 8 ++++++++ runtime/bifrost-polkadot/Cargo.toml | 6 ++++++ runtime/bifrost-polkadot/src/lib.rs | 8 ++++++++ 3 files changed, 22 insertions(+) diff --git a/runtime/bifrost-kusama/src/lib.rs b/runtime/bifrost-kusama/src/lib.rs index 9118a5d5b5..acd0f4505f 100644 --- a/runtime/bifrost-kusama/src/lib.rs +++ b/runtime/bifrost-kusama/src/lib.rs @@ -1957,6 +1957,11 @@ parameter_types! { pub const CallSwitchgearPalletName: &'static str = "CallSwitchgear"; } +impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime { + // This must be the same as the `ChannelInfo` from the `Config`: + type ChannelList = ParachainSystem; +} + /// All migrations that will run on the next runtime upgrade. /// /// This contains the combined migrations of the last 10 releases. It allows to skip runtime @@ -1970,10 +1975,13 @@ pub mod migrations { /// Unreleased migrations. Add new ones here: pub type Unreleased = ( + // permanent migration, do not remove + pallet_xcm::migration::MigrateToLatestXcmVersion, frame_support::migrations::RemovePallet< CallSwitchgearPalletName, ::DbWeight, >, + cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5, ); } diff --git a/runtime/bifrost-polkadot/Cargo.toml b/runtime/bifrost-polkadot/Cargo.toml index 21863a436f..a1c48358f2 100644 --- a/runtime/bifrost-polkadot/Cargo.toml +++ b/runtime/bifrost-polkadot/Cargo.toml @@ -414,6 +414,12 @@ try-runtime = [ "pallet-whitelist/try-runtime", "parachain-info/try-runtime", "zenlink-protocol/try-runtime", + "fp-self-contained/try-runtime", + "pallet-ethereum/try-runtime", + "pallet-evm-accounts/try-runtime", + "pallet-evm/try-runtime", + "pallet-evm-chain-id/try-runtime", + "pallet-dynamic-fee/try-runtime", ] # Enable the metadata hash generation in the wasm builder. diff --git a/runtime/bifrost-polkadot/src/lib.rs b/runtime/bifrost-polkadot/src/lib.rs index e837eea06f..ef385bce4d 100644 --- a/runtime/bifrost-polkadot/src/lib.rs +++ b/runtime/bifrost-polkadot/src/lib.rs @@ -1861,6 +1861,11 @@ parameter_types! { pub const CallSwitchgearPalletName: &'static str = "CallSwitchgear"; } +impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime { + // This must be the same as the `ChannelInfo` from the `Config`: + type ChannelList = ParachainSystem; +} + /// All migrations that will run on the next runtime upgrade. /// /// This contains the combined migrations of the last 10 releases. It allows to skip runtime @@ -1874,10 +1879,13 @@ pub mod migrations { /// Unreleased migrations. Add new ones here: pub type Unreleased = ( + // permanent migration, do not remove + pallet_xcm::migration::MigrateToLatestXcmVersion, frame_support::migrations::RemovePallet< CallSwitchgearPalletName, ::DbWeight, >, + cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5, ); }