mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-27 11:10:31 -05:00
Split SendReceive into seperate traits
This commit is contained in:
parent
6b7193b974
commit
154b3edcf9
4 changed files with 21 additions and 8 deletions
|
|
@ -6,7 +6,7 @@ use crate::{
|
|||
},
|
||||
monero,
|
||||
monero::{CheckTransfer, CreateWalletForOutput},
|
||||
transport::SendReceive,
|
||||
transport::{Receive, Send},
|
||||
};
|
||||
use anyhow::{anyhow, Result};
|
||||
use ecdsa_fun::{
|
||||
|
|
@ -25,7 +25,7 @@ pub async fn next_state<
|
|||
R: RngCore + CryptoRng,
|
||||
B: WatchForRawTransaction + SignTxLock + BuildTxLockPsbt + BroadcastSignedTransaction,
|
||||
M: CreateWalletForOutput + CheckTransfer,
|
||||
T: SendReceive<Message, alice::Message>,
|
||||
T: Send<Message> + Receive<alice::Message>,
|
||||
>(
|
||||
bitcoin_wallet: &B,
|
||||
monero_wallet: &M,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue