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 contractMap = {}
const contractsDetails = {} const contractsDetails = {}
this.compiler.visitContracts((contract) => { this.compiler.visitContracts((contract) => {
const contractDetails = parseContracts( contractMap[contract.name] = contract
contractsDetails[contract.name] = parseContracts(
contract.name, contract.name,
contract.object, contract.object,
this.compiler.getSource(contract.file) this.compiler.getSource(contract.file)
) )
contractMap[contract.name] = contract
contractDetails[contract.name] = contractDetails
}) })
return resolve({ return resolve({
contractMap, contractMap,

Loading…
Cancel
Save