network default value

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

@ -30,7 +30,7 @@ export const VerifyView: React.FC<Props> = ({
onVerifiedContract, onVerifiedContract,
}) => { }) => {
const [results, setResults] = useState("") const [results, setResults] = useState("")
const [networkName, setNetworkName] = useState("") const [networkName, setNetworkName] = useState("Loading...")
const [showConstructorArgs, setShowConstructorArgs] = useState(false) const [showConstructorArgs, setShowConstructorArgs] = useState(false)
const verificationResult = useRef({}) const verificationResult = useRef({})
@ -86,7 +86,6 @@ export const VerifyView: React.FC<Props> = ({
if (client) { if (client) {
client.on("blockchain" as any, 'networkStatus', (result) => { client.on("blockchain" as any, 'networkStatus', (result) => {
setNetworkName(result.network.name) setNetworkName(result.network.name)
client.off("blockchain" as any, 'networkStatus')
}) })
} }
return (<form onSubmit={handleSubmit}> return (<form onSubmit={handleSubmit}>

Loading…
Cancel
Save