linting fix

pull/2112/head
aniket-engg 3 years ago committed by Aniket
parent cd3a3c4b46
commit 9cc0705b19
  1. 2
      libs/remix-core-plugin/src/lib/compiler-artefacts.ts

@ -107,7 +107,7 @@ export class CompilerArtefacts extends Plugin {
if(Object.keys(contractsDataByFilename).includes(filename) && contractsDataByFilename[filename][contract])
return contractsDataByFilename[filename][contract]
else {
let allContractsData = {}
const allContractsData = {}
await this.getArtefactsFromFE ('contracts', contract, allContractsData)
if(allContractsData[contractName]) return allContractsData[contractName]
else throw new Error(`Could not find artifacts for ${contractName}. Compile contract to generate artifacts.`)

Loading…
Cancel
Save