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.
I don't see any keys for ast or legacyAST in the output.
Context
I am trying to generate truffle artifacts for a bunch of contracts written by other people with older varying versions of solidity. If they were all solidity 0.5, I could just let truffle do the compiling, but they don't support compiling different versions of contracts in the same project. My hope is to use sol-compiler to compile everything and then write a small script that translates sol-compiler's output to truffle-contract. More details at trufflesuite/truffle#1607 (comment)
The text was updated successfully, but these errors were encountered:
So my contracts that are compiled with solidity 0.4 now have ast and legacyAST as part of their output, but the contracts with solidity 0.5.2 don't. Should I share my code, or is that enough information?
Yes. That's because sol-compiler consideres artifacts generated by the previous version of sol-compiler up to date if they have the same source hash and compiler settings. We should probably have another invalidation key there. Smth like sol-compiler-version. But it's kinda low-pri.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected Behavior
sol-compiler's docs point to https://solidity.readthedocs.io/en/develop/using-the-compiler.html#input-description which made me think this should work:
Current Behavior
I don't see any keys for ast or legacyAST in the output.
Context
I am trying to generate truffle artifacts for a bunch of contracts written by other people with older varying versions of solidity. If they were all solidity 0.5, I could just let truffle do the compiling, but they don't support compiling different versions of contracts in the same project. My hope is to use sol-compiler to compile everything and then write a small script that translates sol-compiler's output to truffle-contract. More details at trufflesuite/truffle#1607 (comment)
The text was updated successfully, but these errors were encountered: