mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Remove unneeded as_ref_calls
This commit is contained in:
parent
1c7cc7ee46
commit
a24d1a49b9
@ -189,13 +189,13 @@ async fn alice_safe_restart_after_btc_is_locked() {
|
|||||||
|
|
||||||
try_join(alice_swap, bob_swap).await.unwrap();
|
try_join(alice_swap, bob_swap).await.unwrap();
|
||||||
|
|
||||||
let btc_alice_final = alice_btc_wallet.as_ref().balance().await.unwrap();
|
let btc_alice_final = alice_btc_wallet.balance().await.unwrap();
|
||||||
let btc_bob_final = bob_btc_wallet.as_ref().balance().await.unwrap();
|
let btc_bob_final = bob_btc_wallet.balance().await.unwrap();
|
||||||
|
|
||||||
let xmr_alice_final = alice_xmr_wallet.as_ref().get_balance().await.unwrap();
|
let xmr_alice_final = alice_xmr_wallet.get_balance().await.unwrap();
|
||||||
|
|
||||||
bob_xmr_wallet.as_ref().0.refresh().await.unwrap();
|
bob_xmr_wallet.0.refresh().await.unwrap();
|
||||||
let xmr_bob_final = bob_xmr_wallet.as_ref().get_balance().await.unwrap();
|
let xmr_bob_final = bob_xmr_wallet.get_balance().await.unwrap();
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
btc_alice_final,
|
btc_alice_final,
|
||||||
|
Loading…
Reference in New Issue
Block a user