From 52ea0eb4899c6d97c23acb85c4f657454f66d83a Mon Sep 17 00:00:00 2001 From: scx1332 Date: Thu, 14 Mar 2024 16:05:24 +0100 Subject: [PATCH] fmt --- crates/erc20_payment_lib/src/sender/batching.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/erc20_payment_lib/src/sender/batching.rs b/crates/erc20_payment_lib/src/sender/batching.rs index 64cc5a74..e95f7a8f 100644 --- a/crates/erc20_payment_lib/src/sender/batching.rs +++ b/crates/erc20_payment_lib/src/sender/batching.rs @@ -48,8 +48,6 @@ pub struct TokenTransferMultiOrder { token_transfers: Vec, } - - pub async fn gather_transactions_pre( account: &SignerAccount, conn: &SqlitePool, @@ -84,9 +82,10 @@ pub async fn gather_transactions_pre( } } if let Some(deposit_id) = f.deposit_id.as_ref() { - if f.deposit_finish > 0 && - Address::from_str(&f.receiver_addr).ok() == Some(Address::zero()) - && U256::from_dec_str(&f.token_amount).ok() == Some(U256::zero()) { + if f.deposit_finish > 0 + && Address::from_str(&f.receiver_addr).ok() == Some(Address::zero()) + && U256::from_dec_str(&f.token_amount).ok() == Some(U256::zero()) + { log::info!( "Creating close deposit transaction for deposit id: {}", deposit_id