Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Mar 14, 2024
1 parent df07c68 commit 52ea0eb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crates/erc20_payment_lib/src/sender/batching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ pub struct TokenTransferMultiOrder {
token_transfers: Vec<TokenTransferDbObj>,
}



pub async fn gather_transactions_pre(
account: &SignerAccount,
conn: &SqlitePool,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 52ea0eb

Please sign in to comment.