Skip to content

Commit

Permalink
Fix try-runtime (#1323)
Browse files Browse the repository at this point in the history
  • Loading branch information
hqwangningbo authored Aug 1, 2024
1 parent e7810fd commit 3f569ff
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions runtime/bifrost-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<Runtime>,
frame_support::migrations::RemovePallet<
CallSwitchgearPalletName,
<Runtime as frame_system::Config>::DbWeight,
>,
cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
);
}

Expand Down
6 changes: 6 additions & 0 deletions runtime/bifrost-polkadot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions runtime/bifrost-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<Runtime>,
frame_support::migrations::RemovePallet<
CallSwitchgearPalletName,
<Runtime as frame_system::Config>::DbWeight,
>,
cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
);
}

Expand Down

0 comments on commit 3f569ff

Please sign in to comment.