Skip to content

Commit

Permalink
fix migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
re-gius committed Dec 18, 2024
1 parent 4bf3cd6 commit f7c1fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions substrate/frame/staking/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ pub mod v17 {
let mut migration_errors = false;

v16::MaxValidatorsCount::<T>::kill();
v16::ErasStakers::<T>::kill();
v16::ErasStakersClipped::<T>::kill();
v16::ErasStakers::<T>::remove_all(None);

Check failure on line 74 in substrate/frame/staking/src/migrations.rs

View workflow job for this annotation

GitHub Actions / cargo-check-all-crate-macos

use of deprecated associated function `frame_support::pallet_prelude::StorageDoubleMap::<Prefix, Hasher1, Key1, Hasher2, Key2, Value, QueryKind, OnEmpty, MaxValues>::remove_all`: Use `clear` instead
v16::ErasStakersClipped::<T>::remove_all(None);

Check failure on line 75 in substrate/frame/staking/src/migrations.rs

View workflow job for this annotation

GitHub Actions / cargo-check-all-crate-macos

use of deprecated associated function `frame_support::pallet_prelude::StorageDoubleMap::<Prefix, Hasher1, Key1, Hasher2, Key2, Value, QueryKind, OnEmpty, MaxValues>::remove_all`: Use `clear` instead

let old_disabled_validators = v16::DisabledValidators::<T>::get();
// BoundedVec with MaxDisabledValidators limit, this should always work
Expand Down

0 comments on commit f7c1fe4

Please sign in to comment.