diff --git a/runtime/bifrost-kusama/src/lib.rs b/runtime/bifrost-kusama/src/lib.rs index 1dad4c374e..51c97e4e14 100644 --- a/runtime/bifrost-kusama/src/lib.rs +++ b/runtime/bifrost-kusama/src/lib.rs @@ -1710,7 +1710,7 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPallets, - VsbondAuctionOnRuntimeUpgrade, + (), >; impl_runtime_apis! { @@ -1993,52 +1993,6 @@ impl_runtime_apis! { } } -pub struct VsbondAuctionOnRuntimeUpgrade(PhantomData<(T, I)>); -impl, I: 'static> OnRuntimeUpgrade - for VsbondAuctionOnRuntimeUpgrade -{ - #[cfg(feature = "try-runtime")] - fn pre_upgrade() -> Result<(), &'static str> { - #[allow(unused_imports)] - use frame_support::{migration, Identity}; - log::info!("Bifrost `pre_upgrade`..."); - - // check the on-going order number - let order_iter = bifrost_vsbond_auction::TotalOrderInfos::::iter(); - let order_count = order_iter.count(); - log::info!("Old order count is {:?}", order_count); - - Ok(()) - } - - fn on_runtime_upgrade() -> Weight { - log::info!("Bifrost `on_runtime_upgrade`..."); - - let weight = bifrost_vsbond_auction::migration::migrate_orders::(); - - log::info!("Bifrost `on_runtime_upgrade finished`"); - - weight - - // RocksDbWeight::get().writes(1) - } - - #[cfg(feature = "try-runtime")] - fn post_upgrade() -> Result<(), &'static str> { - #[allow(unused_imports)] - use frame_support::{migration, Identity}; - log::info!("Bifrost `post_upgrade`..."); - - // check the post-upgrader remaining order number - let order_iter = bifrost_vsbond_auction::TotalOrderInfos::::iter(); - let order_count = order_iter.count(); - - log::info!("New order count is {:?}", order_count); - - Ok(()) - } -} - struct CheckInherents; impl cumulus_pallet_parachain_system::CheckInherents for CheckInherents {