fix visiting contracts

pull/2470/head
yann300 3 years ago
parent acfefac5b5
commit 47baf742f8
  1. 5
      apps/solidity-compiler/src/app/compiler-api.ts

@ -357,13 +357,12 @@ export const CompilerApiMixin = (Base) => class extends Base {
const contractMap = {}
const contractsDetails = {}
this.compiler.visitContracts((contract) => {
const contractDetails = parseContracts(
contractMap[contract.name] = contract
contractsDetails[contract.name] = parseContracts(
contract.name,
contract.object,
this.compiler.getSource(contract.file)
)
contractMap[contract.name] = contract
contractDetails[contract.name] = contractDetails
})
return resolve({
contractMap,

Loading…
Cancel
Save