Skip to content

Commit

Permalink
Fix logs and test
Browse files Browse the repository at this point in the history
  • Loading branch information
Niederb committed Jun 19, 2024
1 parent 3898625 commit cce45e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions testing/async/examples/state_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use pallet_balances::AccountData as GenericAccountData;
use pallet_staking::Exposure;
use sp_core::{crypto::Ss58Codec, sr25519};
use sp_keyring::AccountKeyring;
use sp_runtime::print;
use sp_staking::EraIndex;
use substrate_api_client::{
ac_primitives::{AssetRuntimeConfig, Config},
Expand Down Expand Up @@ -69,11 +68,11 @@ 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(), "", None)
.get_storage_double_map("Staking", "ErasStakers", EraIndex::default(), alice_stash, None)
.await
.unwrap()
.unwrap();
println!("{:?}", era_stakers);
println!("ErasStakers: {:?}", era_stakers);

// Ensure the prefix matches the actual storage key:
let storage_key_prefix = api.get_storage_map_key_prefix("System", "Account").await.unwrap();
Expand Down

0 comments on commit cce45e6

Please sign in to comment.