Skip to content

Commit

Permalink
Extra log (#54)
Browse files Browse the repository at this point in the history
* Added extra logging
  • Loading branch information
scx1332 authored Sep 13, 2023
1 parent bd3b739 commit eda7198
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/erc20_payment_lib/src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ pub async fn get_balance(
address: Address,
check_gas: bool,
) -> Result<GetBalanceResult, PaymentError> {
log::debug!(
"Checking balance for address {:#x}, token address: {:#x}, check_gas {}",
address,
token_address.unwrap_or_default(),
check_gas
);

let gas_balance = if check_gas {
Some(
web3.eth()
Expand Down

0 comments on commit eda7198

Please sign in to comment.