You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.
const{ id }=compilerOutput.sources[sourceContractPath];allSources[sourceContractPath]={ id, content };}constusedSources=getSourcesWithDependencies(contractPath,allSources,importRemappings);constcontractVersion: ContractVersionData={compilerOutput: compiledContract,
sourceTreeHashHex,sources: _.mapValues(usedSources,({ id })=>({ id })),
Expected Behavior
AST should be present in the artifacts when requested
Current Behavior
It's not there even though Solidity returns it. It does not make it's way to the artifacts file
Possible Solution
In the https://github.com/0xProject/0x-monorepo/blob/development/packages/sol-compiler/src/compiler.ts#L396
Change from:
to
Steps to Reproduce (for bugs)
Compile any contract and request AST in the output.
Context
Trying to get an AST of the contract using sol-compiler
Your Environment
└─ @0x/sol-compiler@4.4.3
The text was updated successfully, but these errors were encountered: