Skip to content

Commit

Permalink
Update ci/integration-tests/src/helpers/chain.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Bogucki <[email protected]>
  • Loading branch information
JakeHartnell and ueco-jb authored Oct 24, 2022
1 parent 2b05580 commit 48a8823
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions ci/integration-tests/src/helpers/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,21 @@ fn test_accounts() -> HashMap<String, SigningAccount> {
let bytes = fs::read("../configs/test_accounts.json").unwrap();
let accounts: Vec<Account> = serde_json::from_slice(&bytes).unwrap();

let mut account_map = HashMap::new();
for account in accounts {
account_map.insert(
account.name.clone(),
SigningAccount {
account: account.clone(),
key: SigningKey {
name: account.name,
key: Key::Mnemonic(account.mnemonic),
accounts
.into_iter()
.map(|account| {
(
account.name.clone(),
SigningAccount {
account: account.clone(),
key: SigningKey {
name: account.name,
key: Key::Mnemonic(account.mnemonic),
},
},
},
);
}
account_map
)
})
.collect::<HashMap<String, SigningAccount>>()
}

// global_setup() runs once before all of the tests
Expand Down

0 comments on commit 48a8823

Please sign in to comment.