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 a5b47d1c8df79c8a0b36f48b901b13e7217040c1
4 changes: 3 additions & 1 deletion runtime/common/src/crowdloan/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ impl<T: Config> OnRuntimeUpgrade for MigrateToTrackInactive<T> {
#[cfg(feature = "try-runtime")]
fn pre_upgrade() -> Result<Vec<u8>, &'static str> {
let total = Funds::<T>::iter_keys()
.map(|index| CurrencyOf::<T>::total_balance(&Pallet::<T>::fund_account_id(index)))
.map(|index| {
CurrencyOf::<T>::total_balance(&Pallet::<T>::fund_account_id(index.into()))
})
.sum();
Ok((total.encode(), CurrencyOf::<T>::active_issuance()))
}
Expand Down