|
|
@ -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: {}, |
|
|
|