From b623ed59475eb4c353fb6278a9fdd85054231cb3 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Wed, 19 Apr 2023 13:42:57 +0530 Subject: [PATCH] handle change --- apps/etherscan/src/app/views/VerifyView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/etherscan/src/app/views/VerifyView.tsx b/apps/etherscan/src/app/views/VerifyView.tsx index b3dae67c0e..e2333405a8 100644 --- a/apps/etherscan/src/app/views/VerifyView.tsx +++ b/apps/etherscan/src/app/views/VerifyView.tsx @@ -82,7 +82,7 @@ export const VerifyView: React.FC = ({ }} onSubmit={(values) => onVerifyContract(values)} > - {({ errors, touched, handleSubmit, isSubmitting }) => { + {({ errors, touched, handleSubmit, handleChange, isSubmitting }) => { if (client) { client.on("blockchain" as any, 'networkStatus', (result) => { setNetworkName(result.network.name) @@ -113,6 +113,7 @@ export const VerifyView: React.FC = ({ } name="contractName" onChange={async (e) => { + handleChange(e) const {artefact} = await client.call("compilerArtefacts" as any, "getArtefactsByContractName", e.target.value) if (artefact && artefact.abi && artefact.abi[0] && artefact.abi[0].type && artefact.abi[0].type === 'constructor') setShowConstructorArgs(true) else setShowConstructorArgs(false)