diff --git a/crates/cli/src/utils/abi.rs b/crates/cli/src/utils/abi.rs index c7f4d260416d7..01c34ba6e83c0 100644 --- a/crates/cli/src/utils/abi.rs +++ b/crates/cli/src/utils/abi.rs @@ -46,8 +46,9 @@ pub async fn parse_function_args>( // a regular function signature with parentheses get_func(sig)? } else { + info!("function signature does not contain parentheses, fetching function data from Etherscan"); let etherscan_api_key = etherscan_api_key.ok_or_eyre( - "If you wish to fetch function data from Etherscan, please provide an Etherscan API key.", + "Function signature does not contain parentheses. If you wish to fetch function data from Etherscan, please provide an API key.", )?; let to = to.ok_or_eyre("A 'to' address must be provided to fetch function data.")?; get_func_etherscan(sig, to, &args, chain, etherscan_api_key).await?