Skip to content

Commit 96d3e27

Browse files
Update libs/remix-core-plugin/src/lib/helpers/fetch-etherscan.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fd2384c commit 96d3e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/remix-core-plugin/src/lib/helpers/fetch-etherscan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const fetchContractFromEtherscan = async (plugin, endpoint: string | Netw
1616
let endpointStr: string
1717
if (typeof endpoint === 'object' && endpoint !== null && 'id' in endpoint && 'name' in endpoint) {
1818
chainId = endpoint.id
19-
const normalized = String((endpoint as any).name || '').toLowerCase()
19+
const normalized = String(endpoint.name || '').toLowerCase()
2020
endpointStr = endpoint.id == 1 ? 'api.etherscan.io' : 'api-' + normalized + '.etherscan.io'
2121
} else {
2222
endpointStr = endpoint as string

0 commit comments

Comments
 (0)