mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-20 15:40:48 -04:00
Remove redundant data
This commit is contained in:
parent
fb3b2aa546
commit
144da75270
6 changed files with 7 additions and 55 deletions
|
@ -12,7 +12,6 @@ use crate::{
|
|||
protocol::{
|
||||
alice,
|
||||
alice::{event_loop::EventLoopHandle, TransferProof},
|
||||
SwapAmounts,
|
||||
},
|
||||
};
|
||||
use anyhow::{Context, Result};
|
||||
|
@ -55,7 +54,6 @@ where
|
|||
|
||||
pub async fn lock_xmr<W>(
|
||||
bob_peer_id: PeerId,
|
||||
amounts: SwapAmounts,
|
||||
state3: alice::State3,
|
||||
event_loop_handle: &mut EventLoopHandle,
|
||||
monero_wallet: Arc<W>,
|
||||
|
@ -71,7 +69,7 @@ where
|
|||
let public_view_key = state3.v.public();
|
||||
|
||||
let (transfer_proof, _) = monero_wallet
|
||||
.transfer(public_spend_key, public_view_key, amounts.xmr)
|
||||
.transfer(public_spend_key, public_view_key, state3.xmr)
|
||||
.await?;
|
||||
|
||||
// TODO(Franck): Wait for Monero to be confirmed once
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue