Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fmt
  • Loading branch information
chevdor committed Jul 28, 2022
commit 4e34031ab8d0666535e4b0fd5a4c9bc2bb374e22
3 changes: 1 addition & 2 deletions frame/staking/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ pub mod v10 {
// too early, but we will definitely won't forget to slash them. The cap of 512 is
// somewhat randomly taken to prevent us from iterating over an arbitrary large
// number of keys `on_runtime_upgrade`.
let pending_slashes =
<Pallet<T> as Store>::UnappliedSlashes::iter().take(512);
let pending_slashes = <Pallet<T> as Store>::UnappliedSlashes::iter().take(512);
for (era, slashes) in pending_slashes {
for slash in slashes {
// in the old slashing scheme, the slash era was the key at which we read
Expand Down