diff --git a/apps/etherscan/src/app/views/VerifyView.tsx b/apps/etherscan/src/app/views/VerifyView.tsx index c7c333c89e..c27e7a120c 100644 --- a/apps/etherscan/src/app/views/VerifyView.tsx +++ b/apps/etherscan/src/app/views/VerifyView.tsx @@ -83,7 +83,7 @@ export const VerifyView: React.FC = ({ onSubmit={(values) => onVerifyContract(values)} > {({ errors, touched, handleSubmit, handleChange, isSubmitting }) => { - if (client) { + if (client && client.on) { client.on("blockchain" as any, 'networkStatus', (result) => { setNetworkName(result.network.name) })