diff --git a/ethers-core/src/types/chain.rs b/ethers-core/src/types/chain.rs index c6fc0cc4..072daac3 100644 --- a/ethers-core/src/types/chain.rs +++ b/ethers-core/src/types/chain.rs @@ -324,7 +324,10 @@ impl Chain { ("https://explorer.celo.org/baklava", "https://explorer.celo.org/baklava/api") } Canto => ("https://evm.explorer.canto.io/", "https://evm.explorer.canto.io/api"), - CantoTestnet => ("https://testnet-explorer.canto.neobase.one/", "https://testnet-explorer.canto.neobase.one/api"), + CantoTestnet => ( + "https://testnet-explorer.canto.neobase.one/", + "https://testnet-explorer.canto.neobase.one/api", + ), AnvilHardhat | Dev | Morden | MoonbeamDev => { // this is explicitly exhaustive so we don't forget to add new urls when adding a // new chain diff --git a/ethers-etherscan/src/lib.rs b/ethers-etherscan/src/lib.rs index a16f9cd0..27682909 100644 --- a/ethers-etherscan/src/lib.rs +++ b/ethers-etherscan/src/lib.rs @@ -120,9 +120,7 @@ impl Client { Chain::Moonbeam | Chain::Moonbase | Chain::MoonbeamDev | Chain::Moonriver => { std::env::var("MOONSCAN_API_KEY")? } - Chain::Canto | Chain::CantoTestnet => { - std::env::var("BLOCKSCOUT_API_KEY")? - } + Chain::Canto | Chain::CantoTestnet => std::env::var("BLOCKSCOUT_API_KEY")?, Chain::AnvilHardhat | Chain::Dev => { return Err(EtherscanError::LocalNetworksNotSupported) }