There was an error while loading. Please reload this page.
1 parent fd2384c commit 96d3e27Copy full SHA for 96d3e27
libs/remix-core-plugin/src/lib/helpers/fetch-etherscan.ts
@@ -16,7 +16,7 @@ export const fetchContractFromEtherscan = async (plugin, endpoint: string | Netw
16
let endpointStr: string
17
if (typeof endpoint === 'object' && endpoint !== null && 'id' in endpoint && 'name' in endpoint) {
18
chainId = endpoint.id
19
- const normalized = String((endpoint as any).name || '').toLowerCase()
+ const normalized = String(endpoint.name || '').toLowerCase()
20
endpointStr = endpoint.id == 1 ? 'api.etherscan.io' : 'api-' + normalized + '.etherscan.io'
21
} else {
22
endpointStr = endpoint as string
0 commit comments