linting fix

pull/2112/head
aniket-engg 3 years ago committed by Aniket
parent 00a5a4b4d3
commit dd4b937cd5
  1. 6
      libs/remix-core-plugin/src/lib/compiler-artefacts.ts

@ -73,7 +73,7 @@ export class CompilerArtefacts extends Plugin {
}
getAllContractArtefactsfromOutput (contractsOutput, contractName) {
let contractArtefacts = {}
const contractArtefacts = {}
for (const filename in contractsOutput) {
if(Object.keys(contractsOutput[filename]).includes(contractName)) contractArtefacts[filename + ':' + contractName] = contractsOutput[filename][contractName]
}
@ -100,8 +100,8 @@ export class CompilerArtefacts extends Plugin {
async getArtefactsByContractName (contractName) {
const contractsDataByFilename = this.getAllContractDatas()
let contractArtefacts
contractArtefacts = this.getAllContractArtefactsfromOutput(contractsDataByFilename, contractName)
// let contractArtefacts
const contractArtefacts = this.getAllContractArtefactsfromOutput(contractsDataByFilename, contractName)
let keys = Object.keys(contractArtefacts)
if (!keys.length) {
await this.getArtefactsFromFE ('contracts', contractName, contractArtefacts)

Loading…
Cancel
Save