Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
NunoAlexandre committed Sep 25, 2023
1 parent 9b659d4 commit 125d133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/centrifuge/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ mod anemoy_pool {
use frame_support::traits::{fungibles::Inspect, OnRuntimeUpgrade};
#[cfg(feature = "try-runtime")]
use pallet_pool_system::PoolDetailsOf;
use sp_std::vec;
#[cfg(feature = "try-runtime")]
use sp_std::vec::Vec;

Expand Down Expand Up @@ -126,7 +127,7 @@ mod anemoy_pool {
pallet_investments::RedeemOrders::<Runtime>::iter_keys().count(),
]
.iter()
.sum() as u64,
.fold(0u64, |acc, x| acc.saturating_add(*x as u64)),
);

(res, weight)
Expand Down

0 comments on commit 125d133

Please sign in to comment.