diff --git a/ethers-etherscan/src/lib.rs b/ethers-etherscan/src/lib.rs index 68b8fa93..2eaa1702 100644 --- a/ethers-etherscan/src/lib.rs +++ b/ethers-etherscan/src/lib.rs @@ -97,17 +97,17 @@ impl Client { let api_key = match chain { Chain::Avalanche | Chain::AvalancheFuji => std::env::var("SNOWTRACE_API_KEY")?, Chain::Polygon | Chain::PolygonMumbai => std::env::var("POLYGONSCAN_API_KEY")?, - Chain::Mainnet - | Chain::Ropsten - | Chain::Kovan - | Chain::Rinkeby - | Chain::Goerli - | Chain::Optimism - | Chain::OptimismKovan - | Chain::Fantom - | Chain::FantomTestnet - | Chain::BinanceSmartChain - | Chain::BinanceSmartChainTestnet => std::env::var("ETHERSCAN_API_KEY")?, + Chain::Mainnet | + Chain::Ropsten | + Chain::Kovan | + Chain::Rinkeby | + Chain::Goerli | + Chain::Optimism | + Chain::OptimismKovan | + Chain::Fantom | + Chain::FantomTestnet | + Chain::BinanceSmartChain | + Chain::BinanceSmartChainTestnet => std::env::var("ETHERSCAN_API_KEY")?, Chain::XDai | Chain::Sepolia => String::default(), Chain::Moonbeam | Chain::MoonbeamDev | Chain::Moonriver => {