iterate imported files too

pull/5370/head
aniket-engg 5 years ago
parent 82922c0071
commit 60dc9811cd
  1. 2
      remix-analyzer/src/solidity-analyzer/modules/gasCosts.ts

@ -39,6 +39,7 @@ export default class gasCosts implements AnalyzerModule {
}
})
for (const method of methodsWithSignature) {
for (const filename in compilationResults.contracts) {
for (const contractName in compilationResults.contracts[filename]) {
const contract = compilationResults.contracts[filename][contractName]
const methodGas: any = this.checkMethodGas(contract, method.signature)
@ -59,6 +60,7 @@ export default class gasCosts implements AnalyzerModule {
} else continue
}
}
}
return report
}

Loading…
Cancel
Save