Remove outdated todos

pull/5285/head
Manuel Wedler 4 months ago committed by Aniket
parent bbfc497a68
commit 661a012ff1
  1. 3
      apps/contract-verification/src/app/Verifiers/AbstractVerifier.ts
  2. 3
      apps/contract-verification/src/app/app.tsx

@ -9,9 +9,6 @@ export interface AbstractVerifier {
}
export abstract class AbstractVerifier {
// TODO remove prop
enabled = true
constructor(public apiUrl: string, public explorerUrl: string) {}
abstract verify(submittedContract: SubmittedContract, compilerAbstract: CompilerAbstract): Promise<VerificationResponse>

@ -18,14 +18,11 @@ const App = () => {
const [themeType, setThemeType] = useState<ThemeType>('dark')
const [settings, setSettings] = useLocalStorage<ContractVerificationSettings>('contract-verification:settings', { chains: {} })
const [submittedContracts, setSubmittedContracts] = useLocalStorage<SubmittedContracts>('contract-verification:submitted-contracts', {})
// TODO: Types for chains
const [chains, setChains] = useState<Chain[]>([]) // State to hold the chains data
const [compilationOutput, setCompilationOutput] = useState<{ [key: string]: CompilerAbstract } | undefined>()
const timer = useRef(null)
useEffect(() => {
// TODO: Fix 'compilationFinished' event types. The interface is outdated at https://github.com/ethereum/remix-plugin/blob/master/packages/api/src/lib/compiler/api.ts. It does not include data, input, or version. See the current parameters: https://github.com/ethereum/remix-project/blob/9f6c5be882453a555055f07171701459e4ae88a4/libs/remix-solidity/src/compiler/compiler.ts#L189
// Fetch compiler artefacts initially
plugin.call('compilerArtefacts' as any, 'getAllCompilerAbstracts').then((obj: any) => {
setCompilationOutput(obj)

Loading…
Cancel
Save