Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mariocynicys committed May 9, 2024
1 parent b221def commit 481ba3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 6 additions & 2 deletions mm2src/coins/utxo/utxo_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,12 @@ pub async fn get_taker_payment_tx_size(coin: &impl UtxoCommonOps) -> usize {
hash_algo: coin.as_ref().tx_hash_algo.into(),
};

let redeem_script =
swap_proto_v2_scripts::taker_funding_script(0, H160::default().as_slice(), &Public::default(), &Public::default());
let redeem_script = swap_proto_v2_scripts::taker_funding_script(
0,
H160::default().as_slice(),
&Public::default(),
&Public::default(),
);

let mut final_tx: UtxoTx = preimage.into();
final_tx.inputs[0].script_sig = Builder::default()
Expand Down
3 changes: 1 addition & 2 deletions mm2src/mm2_main/src/lp_swap/maker_swap_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,7 @@ impl<MakerCoin: MmCoin + MakerCoinSwapOpsV2, TakerCoin: MmCoin + TakerCoinSwapOp
};

// FIXME: Fix the naming of this variable, and the state machine variables.
let taker_payment_spend_trade_fee = match state_machine.taker_coin.get_taker_payment_fee(&stage).await
{
let taker_payment_spend_trade_fee = match state_machine.taker_coin.get_taker_payment_fee(&stage).await {
Ok(fee) => fee,
Err(e) => {
let reason = AbortReason::FailedToGetTakerPaymentSpendFee(e.to_string());
Expand Down

0 comments on commit 481ba3e

Please sign in to comment.