Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix try-runtime #1323

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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