Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
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
Update frame/staking/src/benchmarking.rs
Co-authored-by: Kian Paimani <[email protected]>
  • Loading branch information
emostov and kianenigma authored Aug 1, 2021
commit 2a5304f4c56a5dc509c1f692a600684b19b529d1
6 changes: 4 additions & 2 deletions frame/staking/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,10 @@ impl<T: Config> RebagScenario<T> {
.iter()
.map(|n| n.voter().id.clone())
.collect::<Vec<_>>();
let expected_src_ids = vec![src1_stash.clone(), src3_stash.clone()];
ensure!(src_bag_ids == expected_src_ids, "source bag not in expected state after rebag");
ensure!(
src_bag_ids == vec![src1_stash.clone(), src3_stash.clone()],
"source bag not in expected state after rebag"
);

Ok(())
}
Expand Down