build errors

pull/5370/head
filip mertens 11 months ago
parent 406b058a52
commit 796baafb87
  1. 4
      apps/etherscan/src/app/app.tsx
  2. 2
      apps/etherscan/src/app/views/ReceiptsView.tsx
  3. 2
      apps/etherscan/src/app/views/VerifyView.tsx

@ -41,7 +41,7 @@ const App = () => {
contractsRef.current = contracts contractsRef.current = contracts
useEffect(() => { useEffect(() => {
plugin.internalEvents.on('etherscan_activated', () => {
plugin.on('solidity', 'compilationFinished', (fileName: string, source: CompilationFileSources, languageVersion: string, data: CompilationResult) => { plugin.on('solidity', 'compilationFinished', (fileName: string, source: CompilationFileSources, languageVersion: string, data: CompilationResult) => {
const newContractsNames = getNewContractNames(data) const newContractsNames = getNewContractNames(data)
@ -56,7 +56,7 @@ const App = () => {
}) })
// @ts-ignore // @ts-ignore
plugin.call('blockchain', 'getCurrentNetworkStatus').then((result: any) => setNetworkName(`${result.network.name} ${result.network.id !== '-' ? `(Chain id: ${result.network.id})` : '(Not supported)'}`)) plugin.call('blockchain', 'getCurrentNetworkStatus').then((result: any) => setNetworkName(`${result.network.name} ${result.network.id !== '-' ? `(Chain id: ${result.network.id})` : '(Not supported)'}`))
})
}, []) }, [])
useEffect(() => { useEffect(() => {

@ -96,7 +96,7 @@ export const ReceiptsView = () => {
It's a proxy contract GUID It's a proxy contract GUID
</label> </label>
</div> </div>
<SubmitButton text="Check" disable={!touched.receiptGuid || (touched.receiptGuid && errors.receiptGuid) ? true : false} /> <SubmitButton dataId={null} text="Check" disable={!touched.receiptGuid || (touched.receiptGuid && errors.receiptGuid) ? true : false} />
</form> </form>
)} )}
</Formik> </Formik>

@ -24,7 +24,7 @@ interface FormValues {
expectedImplAddress?: string expectedImplAddress?: string
} }
export const VerifyView ({apiKey, client, contracts, onVerifiedContract, networkName}) => { export const VerifyView = ({apiKey, client, contracts, onVerifiedContract, networkName}) => {
const [results, setResults] = useState('') const [results, setResults] = useState('')
const [selectedContract, setSelectedContract] = useState('') const [selectedContract, setSelectedContract] = useState('')
const [showConstructorArgs, setShowConstructorArgs] = useState(false) const [showConstructorArgs, setShowConstructorArgs] = useState(false)

Loading…
Cancel
Save