Commit 06e0fc12 authored by aniket-engg's avatar aniket-engg Committed by Aniket

compileWithHardhat moved to compileTab

parent d311842f
......@@ -57,12 +57,6 @@ class FileManager extends Plugin {
this.mode = mode
}
async compileWithHardhat (fileContent) {
const configFilePath = 'remixCompiler.config.js'
this.setFileContent(configFilePath, fileContent)
return await this.appManager.call('hardhat', 'compile', configFilePath)
}
limitPluginScope (path) {
return path.replace(/^\/browser\//, '').replace(/^browser\//, '') // forbids plugin to access the root filesystem
}
......
......@@ -98,7 +98,9 @@ class CompileTab {
}
}
`
this.fileManager.compileWithHardhat(fileContent).then(console.log)
const configFilePath = 'remix-compiler.config.js'
this.fileManager.setFileContent(configFilePath, fileContent)
this.fileManager.appManager.call('hardhat', 'compile', configFilePath)
}
this.fileManager.saveCurrentFile()
this.miscApi.clearAnnotations()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment