From ee5e3e52c018ee091ef267a37c15d0283cd946cf Mon Sep 17 00:00:00 2001 From: James Prestwich <10149425+prestwich@users.noreply.github.com> Date: Tue, 21 Feb 2023 16:52:20 -0800 Subject: [PATCH] fmt: run rustfmt (#2176) --- ethers-core/src/types/chain.rs | 5 ++++- ethers-etherscan/src/lib.rs | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) 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) }