Skip to content

Commit

Permalink
Use ErasStakersOverview instead of ErasStakers
Browse files Browse the repository at this point in the history
  • Loading branch information
Niederb committed Jun 26, 2024
1 parent cce45e6 commit 9c7bdee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/async/examples/state_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async fn main() {
api.get_storage_map("System", "Account", &alice, None).await.unwrap().unwrap();

let storage_double_map_key_prefix = api
.get_storage_double_map_key_prefix("Staking", "ErasStakers", 0)
.get_storage_double_map_key_prefix("Staking", "ErasStakersOverview", 0)
.await
.unwrap();
let double_map_storage_keys = api
Expand All @@ -68,7 +68,7 @@ async fn main() {
.unwrap();
println!("Could fetch storage_keys: {:?}", double_map_storage_keys);
let era_stakers: ErasStakers = api
.get_storage_double_map("Staking", "ErasStakers", EraIndex::default(), alice_stash, None)
.get_storage_double_map("Staking", "ErasStakersOverview", EraIndex::default(), alice_stash, None)
.await
.unwrap()
.unwrap();
Expand Down

0 comments on commit 9c7bdee

Please sign in to comment.