-
Hello I can't get the object from solcx If i launch
And at the bottom is my deploy.py file. from solcx import compile_standard
with open(
"./Simplestorage.sol", "r"
) as file: # On ouvre le ficheir simpleStorage, en mode read et nous l'apelon file
simple_storage_file = file.read() # On créer une variable pour lire le file
# Compile our solidity
compiled_sol = compile_standard(
{
"language": "Solidity",
"sources": {"SimpleStorage.sol": {"content": simple_storage_file}},
"settings": {
"outputSelection": {
"*": {
"*": ["abi", "metadata", "evm.bytecode", "evm.sourceMap"]}
}
},
},
solc_version="0.6.0",
)
print(compiled_sol) And if i launch
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @NinjaTurtles-cloud you are missing this line: |
Beta Was this translation helpful? Give feedback.
Hello @NinjaTurtles-cloud you are missing this line:
install_solc("0.6.0")
beforecompiled_sol