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

OpenGov improvements for Kusama #6372

Merged
merged 12 commits into from
Dec 5, 2022
Prev Previous commit
Next Next commit
Fixes
  • Loading branch information
gavofyork committed Dec 3, 2022
commit 58d1360406348204e9a6a6b797312fdb5651e553
2 changes: 1 addition & 1 deletion runtime/common/src/crowdloan/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl<T: Config> OnRuntimeUpgrade for MigrateToTrackInactive<T> {
.map(|index| {
CurrencyOf::<T>::total_balance(&Pallet::<T>::fund_account_id(index.into()))
})
.sum();
.fold(BalanceOf::<T>::zero(), |a, i| a.saturating_add(i));
Ok((total.encode(), CurrencyOf::<T>::active_issuance()))
}

Expand Down