Skip to content

Commit

Permalink
fix weight type
Browse files Browse the repository at this point in the history
  • Loading branch information
breathx committed Jul 16, 2024
1 parent 51a6141 commit ce1deee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pallets/gear-program/src/migrations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub mod v8_fix {
T::Paymaster: Pay<Beneficiary = T::AccountId, AssetKind = (), Balance = BalanceOf<T>>,
{
fn on_runtime_upgrade() -> Weight {
let mut weight = 0;
let mut weight = Weight::from_parts(0, 0);

if Pallet::<T>::on_chain_storage_version() == StorageVersion::new(8) {
log::info!("Running asap fix migrations");
Expand Down Expand Up @@ -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
}
}
}

0 comments on commit ce1deee

Please sign in to comment.