From 538e5d261c6f32bd9fd9a25afe6341138cc9a3dd Mon Sep 17 00:00:00 2001 From: KillariDev <13102010+KillariDev@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:39:09 +0200 Subject: [PATCH] Update app/ts/simulation/services/EtherScanAbiFetcher.ts Co-authored-by: Jubal Mabaquiao --- app/ts/simulation/services/EtherScanAbiFetcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ts/simulation/services/EtherScanAbiFetcher.ts b/app/ts/simulation/services/EtherScanAbiFetcher.ts index a4146f38..44ab2fef 100644 --- a/app/ts/simulation/services/EtherScanAbiFetcher.ts +++ b/app/ts/simulation/services/EtherScanAbiFetcher.ts @@ -25,7 +25,7 @@ export function isValidAbi(abi: string) { export function getBlockExplorer(chainId: ChainIdWithUniversal, rpcEntries: RpcEntries) { if (chainId === 'AllChains') return undefined const primaryRpc = rpcEntries.find((rpc) => rpc.chainId === chainId && rpc.primary) - if (primaryRpc !== undefined && 'blockExplorer' in primaryRpc && primaryRpc.blockExplorer !== undefined) return primaryRpc.blockExplorer + if (primaryRpc !== undefined && primaryRpc.blockExplorer !== undefined) return primaryRpc.blockExplorer return getDefaultBlockExplorer(chainId) }