fix error for library

pull/3638/head
Aniket-Engg 2 years ago committed by Aniket
parent a5fc32da04
commit bc1b178aa9
  1. 2
      apps/etherscan/src/app/views/VerifyView.tsx

@ -114,7 +114,7 @@ export const VerifyView: React.FC<Props> = ({
name="contractName"
onChange={async (e) => {
const {artefact} = await client.call("compilerArtefacts" as any, "getArtefactsByContractName", e.target.value)
if (artefact && artefact.abi && artefact.abi[0].type && artefact.abi[0].type === 'constructor') setShowConstructorArgs(true)
if (artefact && artefact.abi && artefact.abi[0] && artefact.abi[0].type && artefact.abi[0].type === 'constructor') setShowConstructorArgs(true)
else setShowConstructorArgs(false)
}}
>

Loading…
Cancel
Save