Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Mar 14, 2024
1 parent 6339273 commit df07c68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/erc20_payment_lib/src/sender/batching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ pub async fn gather_transactions_pre(
}
}
if let Some(deposit_id) = f.deposit_id.as_ref() {
if f.deposit_finish > 0 {
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 df07c68

Please sign in to comment.