Skip to content

Commit

Permalink
Patch HashMap initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCharlatan committed Apr 16, 2022
1 parent 17f0afc commit 3c529e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/farcasterd/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ impl Runtime {
let options = monero_rpc::TransferOptions::default();
match wallet
.transfer(
HashMap::from([(address, amount)]),
[(address, amount)].iter().cloned().collect(),
monero_rpc::TransferPriority::Default,
options.clone(),
)
Expand Down
2 changes: 1 addition & 1 deletion tests/functional-swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1976,7 +1976,7 @@ async fn send_monero(
wallet_lock.refresh(Some(1)).await.unwrap();
let transaction = wallet_lock
.transfer(
HashMap::from([(address, amount)]),
[(address, amount)].iter().cloned().collect(),
monero_rpc::TransferPriority::Default,
options.clone(),
)
Expand Down
10 changes: 8 additions & 2 deletions tests/functional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1484,7 +1484,10 @@ async fn monero_syncer_transaction_test() {
};
let transaction = wallet
.transfer(
HashMap::from([(address, monero::Amount::from_pico(1000))]),
[(address, monero::Amount::from_pico(1000))]
.iter()
.cloned()
.collect(),
monero_rpc::TransferPriority::Default,
options.clone(),
)
Expand Down Expand Up @@ -1791,7 +1794,10 @@ async fn send_monero(
};
let transaction = wallet
.transfer(
HashMap::from([(address, monero::Amount::from_pico(amount))]),
[(address, monero::Amount::from_pico(amount))]
.iter()
.cloned()
.collect(),
monero_rpc::TransferPriority::Default,
options.clone(),
)
Expand Down

0 comments on commit 3c529e6

Please sign in to comment.