Take wallet names by reference

We are always passing constants here. Make that more ergonomic.
This commit is contained in:
Thomas Eizinger 2021-04-16 12:05:12 +10:00
parent 22bdc08c83
commit dc840e1562
No known key found for this signature in database
GPG key ID: 651AC83A6C6C8B96
3 changed files with 6 additions and 10 deletions

View file

@ -195,12 +195,10 @@ async fn init_monero_container(
Monero,
Vec<Container<'_, Cli, monero_harness::image::Monero>>,
) {
let (monero, monerods) = Monero::new(&cli, vec![
MONERO_WALLET_NAME_ALICE.to_owned(),
MONERO_WALLET_NAME_BOB.to_owned(),
])
.await
.unwrap();
let (monero, monerods) =
Monero::new(&cli, vec![MONERO_WALLET_NAME_ALICE, MONERO_WALLET_NAME_BOB])
.await
.unwrap();
(monero, monerods)
}