From 796baafb87fe7f26a1bb328a93d18fa585edc974 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Wed, 20 Dec 2023 14:22:38 +0100 Subject: [PATCH] build errors --- apps/etherscan/src/app/app.tsx | 4 ++-- apps/etherscan/src/app/views/ReceiptsView.tsx | 2 +- apps/etherscan/src/app/views/VerifyView.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/etherscan/src/app/app.tsx b/apps/etherscan/src/app/app.tsx index 39e89e00d7..cb8d9b67ff 100644 --- a/apps/etherscan/src/app/app.tsx +++ b/apps/etherscan/src/app/app.tsx @@ -41,7 +41,7 @@ const App = () => { contractsRef.current = contracts useEffect(() => { - plugin.internalEvents.on('etherscan_activated', () => { + plugin.on('solidity', 'compilationFinished', (fileName: string, source: CompilationFileSources, languageVersion: string, data: CompilationResult) => { const newContractsNames = getNewContractNames(data) @@ -56,7 +56,7 @@ const App = () => { }) // @ts-ignore plugin.call('blockchain', 'getCurrentNetworkStatus').then((result: any) => setNetworkName(`${result.network.name} ${result.network.id !== '-' ? `(Chain id: ${result.network.id})` : '(Not supported)'}`)) - }) + }, []) useEffect(() => { diff --git a/apps/etherscan/src/app/views/ReceiptsView.tsx b/apps/etherscan/src/app/views/ReceiptsView.tsx index 9ec4536de9..9a2c345462 100644 --- a/apps/etherscan/src/app/views/ReceiptsView.tsx +++ b/apps/etherscan/src/app/views/ReceiptsView.tsx @@ -96,7 +96,7 @@ export const ReceiptsView = () => { It's a proxy contract GUID - + )} diff --git a/apps/etherscan/src/app/views/VerifyView.tsx b/apps/etherscan/src/app/views/VerifyView.tsx index 4e68e353f9..ca70dba74c 100644 --- a/apps/etherscan/src/app/views/VerifyView.tsx +++ b/apps/etherscan/src/app/views/VerifyView.tsx @@ -24,7 +24,7 @@ interface FormValues { expectedImplAddress?: string } -export const VerifyView ({apiKey, client, contracts, onVerifiedContract, networkName}) => { +export const VerifyView = ({apiKey, client, contracts, onVerifiedContract, networkName}) => { const [results, setResults] = useState('') const [selectedContract, setSelectedContract] = useState('') const [showConstructorArgs, setShowConstructorArgs] = useState(false)