fix formatting and typo

This commit is contained in:
patrini32 2024-06-04 20:09:18 +03:00 committed by patrini32
parent 391fb226b5
commit 7e5c1ae45a
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ pub async fn cancel_and_refund(
db: Arc<dyn Database + Send + Sync>,
) -> Result<BobState> {
match cancel(swap_id, bitcoin_wallet.clone(), db.clone()).await {
Ok((_, state @ BobState::BtcCancelled {..})) => {
Ok((_, state @ BobState::BtcCancelled { .. })) => {
return Ok(state);
}
Err(err) => {

View File

@ -50,7 +50,7 @@ async fn given_alice_and_bob_manually_refund_after_funds_locked_both_refund() {
// Bob manually cancels
bob_join_handle.abort();
let (_, _, state) = cli::cancel(bob_swap.id, bob_swap.bitcoin_wallet, bob_swap.db).await?;
let (_, state) = cli::cancel(bob_swap.id, bob_swap.bitcoin_wallet, bob_swap.db).await?;
assert!(matches!(state, BobState::BtcCancelled { .. }));
let (bob_swap, bob_join_handle) = ctx