pull/5370/head
aniket-engg 3 years ago committed by Aniket
parent 8eaece5f76
commit d8f4951e7f
  1. 9
      apps/remix-ide/src/app/files/fileManager.ts
  2. 2
      libs/remix-core-plugin/src/lib/compiler-artefacts.ts

@ -704,7 +704,14 @@ class FileManager extends Plugin {
return collectList(path)
}
isRemixDActive() {
async fileList (dirPath) {
const paths: any = await this.readdir(dirPath)
for( const path in paths)
if(paths[path].isDirectory) delete paths[path]
return paths
}
isRemixDActive () {
return this.appManager.isActive('remixd')
}

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

Loading…
Cancel
Save