diff --git a/pallets/gear-program/src/migrations/mod.rs b/pallets/gear-program/src/migrations/mod.rs index 48648835ee5..f86a5480542 100644 --- a/pallets/gear-program/src/migrations/mod.rs +++ b/pallets/gear-program/src/migrations/mod.rs @@ -46,7 +46,7 @@ pub mod v8_fix { T::Paymaster: Pay>, { fn on_runtime_upgrade() -> Weight { - let mut weight = 0; + let mut weight = Weight::from_parts(0, 0); if Pallet::::on_chain_storage_version() == StorageVersion::new(8) { log::info!("Running asap fix migrations"); @@ -90,14 +90,14 @@ pub mod v8_fix { }; }); - weight = 200_000_000; + weight = Weight::from_parts(200_000_000, 0); log::info!("✅ Successfully fixed migrated storage"); } else { log::info!("🟠 Migration requires onchain version 8, so was skipped"); } - weight.into() + weight } } }