fmt: run rustfmt (#2176)
This commit is contained in:
parent
e55b8116f3
commit
ee5e3e52c0
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue