Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
feat: add new holesky etherscan urls (#2620)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Sep 30, 2023
1 parent b7e7c28 commit 70e5f02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ethers-core/src/types/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ impl Chain {
Rinkeby => ("https://api-rinkeby.etherscan.io/api", "https://rinkeby.etherscan.io"),
Goerli => ("https://api-goerli.etherscan.io/api", "https://goerli.etherscan.io"),
Sepolia => ("https://api-sepolia.etherscan.io/api", "https://sepolia.etherscan.io"),
Holesky => ("https://api-holesky.etherscan.io/api", "https://holesky.etherscan.io"),

Polygon => ("https://api.polygonscan.com/api", "https://polygonscan.com"),
PolygonMumbai => {
Expand Down Expand Up @@ -543,7 +544,7 @@ impl Chain {
("https://explorer.goerli.linea.build/api", "https://explorer.goerli.linea.build/")
}

Holesky | AnvilHardhat | Dev | Morden | MoonbeamDev | FilecoinMainnet => {
AnvilHardhat | Dev | Morden | MoonbeamDev | FilecoinMainnet => {
// this is explicitly exhaustive so we don't forget to add new urls when adding a
// new chain
return None
Expand Down Expand Up @@ -573,6 +574,7 @@ impl Chain {
Kovan |
Rinkeby |
Goerli |
Holesky |
Optimism |
OptimismGoerli |
OptimismKovan |
Expand Down Expand Up @@ -611,7 +613,6 @@ impl Chain {
Metis |
Chiado |
Sepolia |
Holesky |
Rsk |
Sokol |
Poa |
Expand Down

0 comments on commit 70e5f02

Please sign in to comment.