Skip to content

Commit b0b1b91

Browse files
committed
Reset form after submitting for verification
1 parent 705f0a1 commit b0b1b91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/contract-verification/src/app/views/VerifyView.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ export const VerifyView = () => {
113113

114114
setSubmittedContracts((prev) => ({ ...prev, [newSubmittedContract.id]: newSubmittedContract }))
115115

116+
// Reset form
116117
setContractAddress('')
118+
setAbiEncodedConstructorArgs('')
119+
setSelectedContract(undefined)
120+
setProxyAddress('')
117121

118122
// Take user to receipt view
119123
navigate('/receipts')

0 commit comments

Comments
 (0)