Open ayeteng opened 6 years ago
I just encountered the same error, looking into the pysolc source code it appears like it might not be an issue with pysolc at all, but rather an issue with solidity 0.4.24 -- https://github.com/ethereum/solidity/issues/2742 describes an almost identical problem that has not yet been fixed.
If I run it under terminal with command:
console> solc --combined-json abi,asm,ast,bin,bin-runtime,clone-bin,devdoc,interface,opcodes,userdoc --allow-paths /Users/sam/work/tutorial ./SimpleStorage.sol
It can output the correct result. I am not sure if the issue related with ethereum or py-solc.
@ayeteng I got the same issue with yours . Compiling the .sol
file with solc
in command line is okay,
but went wrong if using solc-py . I don't think it is a solidity 0.4.24 issue .
had anyone solve this problem? It has troubled me several days...
py-solc
Version: 3.1.0solc
Version: 0.4.24What was wrong?
in my python code:
in my SimpleStorage.sol:
Tree: . ├── Migrations.sol ├── SimpleStorage.sol ├── storage │ ├── SimpleStorage.sol │ └── interfaces │ └── ISimpleStorage.sol ├── token │ ├── ERC20Token.sol │ └── interfaces │ └── IERC20Token.sol └── utility └── Utils.sol
Cute Animal Picture