fmt: run rustfmt (#2176)

This commit is contained in:
James Prestwich 2023-02-21 16:52:20 -08:00 committed by GitHub
parent e55b8116f3
commit ee5e3e52c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -324,7 +324,10 @@ impl Chain {
("https://explorer.celo.org/baklava", "https://explorer.celo.org/baklava/api") ("https://explorer.celo.org/baklava", "https://explorer.celo.org/baklava/api")
} }
Canto => ("https://evm.explorer.canto.io/", "https://evm.explorer.canto.io/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 => { AnvilHardhat | Dev | Morden | MoonbeamDev => {
// this is explicitly exhaustive so we don't forget to add new urls when adding a // this is explicitly exhaustive so we don't forget to add new urls when adding a
// new chain // new chain

View File

@ -120,9 +120,7 @@ impl Client {
Chain::Moonbeam | Chain::Moonbase | Chain::MoonbeamDev | Chain::Moonriver => { Chain::Moonbeam | Chain::Moonbase | Chain::MoonbeamDev | Chain::Moonriver => {
std::env::var("MOONSCAN_API_KEY")? std::env::var("MOONSCAN_API_KEY")?
} }
Chain::Canto | Chain::CantoTestnet => { Chain::Canto | Chain::CantoTestnet => std::env::var("BLOCKSCOUT_API_KEY")?,
std::env::var("BLOCKSCOUT_API_KEY")?
}
Chain::AnvilHardhat | Chain::Dev => { Chain::AnvilHardhat | Chain::Dev => {
return Err(EtherscanError::LocalNetworksNotSupported) return Err(EtherscanError::LocalNetworksNotSupported)
} }