Skip to content

Commit 6dece52

Browse files
authored
pallet-nomination-pools: Enable function for fuzzing feature as well (#2711)
The function is called by `do_try_state` which is also enabled for the `fuzzing` feature. --------- Co-authored-by: command-bot <>
1 parent c1a11b7 commit 6dece52

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • substrate/frame/nomination-pools/src

substrate/frame/nomination-pools/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3467,7 +3467,13 @@ impl<T: Config> Pallet<T> {
34673467
/// Check if any pool have an incorrect amount of ED frozen.
34683468
///
34693469
/// This can happen if the ED has changed since the pool was created.
3470-
#[cfg(any(feature = "try-runtime", feature = "runtime-benchmarks", test, debug_assertions))]
3470+
#[cfg(any(
3471+
feature = "try-runtime",
3472+
feature = "runtime-benchmarks",
3473+
feature = "fuzzing",
3474+
test,
3475+
debug_assertions
3476+
))]
34713477
pub fn check_ed_imbalance() -> Result<(), DispatchError> {
34723478
let mut failed: u32 = 0;
34733479
BondedPools::<T>::iter_keys().for_each(|id| {

0 commit comments

Comments
 (0)