|
|
@ -41,7 +41,7 @@ export const VerifyView: React.FC<Props> = ({ |
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
if (client && client.on) { |
|
|
|
if (client && client.on) { |
|
|
|
client.on("blockchain" as any, 'networkStatus', (result) => { |
|
|
|
client.on("blockchain" as any, 'networkStatus', (result) => { |
|
|
|
setNetworkName(`${result.network.name} ${result.network.id !== '-' ? `(Chain id: ${result.network.id})` : ''}`) |
|
|
|
setNetworkName(`${result.network.name} ${result.network.id !== '-' ? `(Chain id: ${result.network.id})` : '(Not supported)'}`) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
return () => { |
|
|
|
return () => { |
|
|
@ -248,7 +248,8 @@ export const VerifyView: React.FC<Props> = ({ |
|
|
|
!touched.contractName || |
|
|
|
!touched.contractName || |
|
|
|
!touched.contractAddress || |
|
|
|
!touched.contractAddress || |
|
|
|
(touched.contractName && errors.contractName) || |
|
|
|
(touched.contractName && errors.contractName) || |
|
|
|
(touched.contractAddress && errors.contractAddress)
|
|
|
|
(touched.contractAddress && errors.contractAddress) || |
|
|
|
|
|
|
|
(networkName === 'VM (Not supported)') |
|
|
|
? true
|
|
|
|
? true
|
|
|
|
: false} |
|
|
|
: false} |
|
|
|
/> |
|
|
|
/> |
|
|
|