Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit a025f90

Browse files
committed
remove applied runtime migrations
1 parent f5a3851 commit a025f90

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

polkadot-parachains/statemine/src/lib.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -736,18 +736,9 @@ pub type Executive = frame_executive::Executive<
736736
frame_system::ChainContext<Runtime>,
737737
Runtime,
738738
AllPallets,
739-
OnRuntimeUpgrade,
739+
(),
740740
>;
741741

742-
pub struct OnRuntimeUpgrade;
743-
impl frame_support::traits::OnRuntimeUpgrade for OnRuntimeUpgrade {
744-
fn on_runtime_upgrade() -> u64 {
745-
frame_support::migrations::migrate_from_pallet_version_to_storage_version::<
746-
AllPalletsWithSystem,
747-
>(&RocksDbWeight::get())
748-
}
749-
}
750-
751742
impl_runtime_apis! {
752743
impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
753744
fn slot_duration() -> sp_consensus_aura::SlotDuration {

polkadot-parachains/westmint/src/lib.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -722,18 +722,9 @@ pub type Executive = frame_executive::Executive<
722722
frame_system::ChainContext<Runtime>,
723723
Runtime,
724724
AllPallets,
725-
OnRuntimeUpgrade,
725+
(),
726726
>;
727727

728-
pub struct OnRuntimeUpgrade;
729-
impl frame_support::traits::OnRuntimeUpgrade for OnRuntimeUpgrade {
730-
fn on_runtime_upgrade() -> u64 {
731-
frame_support::migrations::migrate_from_pallet_version_to_storage_version::<
732-
AllPalletsWithSystem,
733-
>(&RocksDbWeight::get())
734-
}
735-
}
736-
737728
impl_runtime_apis! {
738729
impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
739730
fn slot_duration() -> sp_consensus_aura::SlotDuration {

0 commit comments

Comments
 (0)