From eda7198ee893850391912a100382e2b52f26a23f Mon Sep 17 00:00:00 2001 From: scx1332 Date: Wed, 13 Sep 2023 20:37:18 +0200 Subject: [PATCH] Extra log (#54) * Added extra logging --- crates/erc20_payment_lib/src/eth.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/erc20_payment_lib/src/eth.rs b/crates/erc20_payment_lib/src/eth.rs index ac961b2a..a227215a 100644 --- a/crates/erc20_payment_lib/src/eth.rs +++ b/crates/erc20_payment_lib/src/eth.rs @@ -22,6 +22,13 @@ pub async fn get_balance( address: Address, check_gas: bool, ) -> Result { + 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()