feat: add Sepolia endpoint (#1467)

- https://docs.etherscan.io/getting-started/endpoint-urls
This commit is contained in:
sea-edge 2022-07-10 07:20:14 +09:00 committed by GitHub
parent 1ff4be74f9
commit d12c98d0cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ impl ClientBuilder {
let (etherscan_api_url, etherscan_url) = match chain { let (etherscan_api_url, etherscan_url) = match chain {
Chain::Mainnet => urls("https://api.etherscan.io/api", "https://etherscan.io"), Chain::Mainnet => urls("https://api.etherscan.io/api", "https://etherscan.io"),
Chain::Ropsten | Chain::Kovan | Chain::Rinkeby | Chain::Goerli => { Chain::Ropsten | Chain::Kovan | Chain::Rinkeby | Chain::Goerli | Chain::Sepolia => {
let chain_name = chain.to_string().to_lowercase(); let chain_name = chain.to_string().to_lowercase();
urls( urls(
format!("https://api-{}.etherscan.io/api", chain_name), format!("https://api-{}.etherscan.io/api", chain_name),