fix getting compe result from hardhat

pull/5370/head
yann300 2 years ago
parent 2f07402cd8
commit b000fd4b85
  1. 4
      libs/remixd/src/services/hardhatClient.ts

@ -66,8 +66,10 @@ export class HardhatClient extends PluginClient {
const folderFiles = await fs.readdir(contractsTargets)
// name of folders are file names
for (const file of folderFiles) { // ["artifacts/contracts/Greeter.sol/"]
// const fileName = basename(file) // "Greeter.sol"
const contractFilePath = join(contractsTargets, file)
const stat = await fs.stat(contractFilePath)
if (!stat.isDirectory()) continue
const files = await fs.readdir(contractFilePath)
const compilationResult = {
input: {},

Loading…
Cancel
Save