fix getting compe result from hardhat

pull/2956/head
yann300 2 years ago
parent afd3db9223
commit ce095147e0
  1. 4
      libs/remixd/src/services/hardhatClient.ts

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

Loading…
Cancel
Save