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 c4245d6 commit b0381e1Copy full SHA for b0381e1
crates/config/src/lib.rs
@@ -1429,19 +1429,11 @@ impl Config {
1429
1430
// etherscan fallback via API key
1431
if let Some(key) = self.etherscan_api_key.as_ref() {
1432
- match ResolvedEtherscanConfig::create(
+ return Ok(ResolvedEtherscanConfig::create(
1433
key,
1434
chain.or(self.chain).unwrap_or_default(),
1435
default_api_version,
1436
- ) {
1437
- Some(config) => return Ok(Some(config)),
1438
- None => {
1439
- return Err(EtherscanConfigError::UnknownChain(
1440
- String::new(),
1441
- chain.unwrap_or_default(),
1442
- ));
1443
- }
1444
+ ));
1445
}
1446
Ok(None)
1447
0 commit comments