From 50386622cc00c15f2277a2121f60b614e24759ba Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 6 May 2022 20:17:38 +0200 Subject: [PATCH] feat(etherscan): add moonbeam urls --- ethers-etherscan/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ethers-etherscan/src/lib.rs b/ethers-etherscan/src/lib.rs index 4b9b8de1a..1515a8b27 100644 --- a/ethers-etherscan/src/lib.rs +++ b/ethers-etherscan/src/lib.rs @@ -257,6 +257,12 @@ impl ClientBuilder { urls("https://api-testnet.arbiscan.io/api", "https://testnet.arbiscan.io") } Chain::Cronos => urls("https://api.cronoscan.com/api", "https://cronoscan.com"), + Chain::Moonbeam => { + urls("https://api-moonbeam.moonscan.io/api", "https://moonbeam.moonscan.io/") + } + Chain::Moonriver => { + urls("https://api-moonriver.moonscan.io/api", "https://moonriver.moonscan.io") + } Chain::Dev => return Err(EtherscanError::LocalNetworksNotSupported), chain => return Err(EtherscanError::ChainNotSupported(chain)), };