We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a81c19 commit 272e60dCopy full SHA for 272e60d
crates/block-explorers/src/lib.rs
@@ -245,7 +245,8 @@ impl Client {
245
if let Some(ref result) = result {
246
if result.starts_with("Max rate limit reached") {
247
return Err(EtherscanError::RateLimitExceeded);
248
- } else if result.to_lowercase() == "invalid api key" {
+ }
249
+ if result.to_lowercase().contains("invalid api key") {
250
return Err(EtherscanError::InvalidApiKey);
251
}
252
0 commit comments