mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-08 13:37:22 +00:00
Implement iter for doublemap (#5504)
* implement iter for doublemap * fmt * fix tests * fix staking mock * address comment * update doc and constraint for reversible hasher Co-authored-by: Gavin Wood <gavin@parity.io>
This commit is contained in:
@@ -528,7 +528,7 @@ fn check_ledgers() {
|
||||
fn check_exposures() {
|
||||
// a check per validator to ensure the exposure struct is always sane.
|
||||
let era = active_era();
|
||||
ErasStakers::<Test>::iter_prefix(era).for_each(|expo| {
|
||||
ErasStakers::<Test>::iter_prefix_values(era).for_each(|expo| {
|
||||
assert_eq!(
|
||||
expo.total as u128,
|
||||
expo.own as u128 + expo.others.iter().map(|e| e.value as u128).sum::<u128>(),
|
||||
|
||||
Reference in New Issue
Block a user