Skip to content

Commit

Permalink
Improved error message
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Sep 23, 2024
1 parent 42c9dbc commit cf53a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/erc20_payment_lib/src/account_balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use std::sync::Arc;
use structopt::StructOpt;
use web3::types::Address;

#[allow(dead_code)]
#[derive(Clone, StructOpt)]
#[structopt(about = "Payment statistics options")]
pub struct BalanceOptions2 {
Expand Down
4 changes: 2 additions & 2 deletions crates/erc20_payment_lib/src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,12 +540,12 @@ async fn get_balance_using_contract_wrapper(
Ok(None)
} else {
log::error!(
"Error getting balance for account: {:#x} - {}",
"Web3 RPC endpoint(s) failed: Error getting balance for account: {:#x} - {}",
args.address,
e
);
Err(err_custom_create!(
"Error getting balance for account: {:#x} - {}",
"Web3 RPC endpoint(s) failed: Error getting balance for account: {:#x} - {}",
args.address,
e
))
Expand Down

0 comments on commit cf53a4e

Please sign in to comment.