linting fix

pull/2074/head^2
aniket-engg 3 years ago committed by Aniket
parent b4e702e7ee
commit 36c936be0a
  1. 4
      libs/remix-core-plugin/src/lib/compiler-artefacts.ts

@ -77,9 +77,9 @@ export class CompilerArtefacts extends Plugin {
const contractsData = Object.values(contractsDataByFilename) const contractsData = Object.values(contractsDataByFilename)
if (contractsData && contractsData.length) { if (contractsData && contractsData.length) {
const index = contractsData.findIndex((contractsObj) => Object.keys(contractsObj).includes(contractName)) const index = contractsData.findIndex((contractsObj) => Object.keys(contractsObj).includes(contractName))
if (index != -1) return contractsData[index][contractName] if (index !== -1) return contractsData[index][contractName]
else throw new Error(`Could not find artifacts for ${contractName}. Make sure it is compiled.`) else throw new Error(`Could not find artifacts for ${contractName}. Make sure it is compiled.`)
} else throw new Error(`No contract compiled`) } else throw new Error('No contract compiled')
} }
getCompilerAbstract (file) { getCompilerAbstract (file) {

Loading…
Cancel
Save