"simple_storage_file is not defined at 3:45 #896
-
Hi i am getting an error with "simple_storage_file is not defined. This is the section of code which i believe i have written correctly. But maybe this is a pathway issue, which i don't understand how to setup pathways. Any assistance would be greatly appreciated. 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) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hello @benjamin15790 do you have this code above? with open("./SimpleStorage.sol", "r") as file:
simple_storage_file = file.read() |
Beta Was this translation helpful? Give feedback.
-
Hi Benjamin,
|
Beta Was this translation helpful? Give feedback.
-
@benjamin15790 Did this solve your problem? If so, please mark the correct answer. This way others can better find the solution if they run into the same problem. |
Beta Was this translation helpful? Give feedback.
Hi Benjamin,
videos of this kind of rapidly developing technology tend to be (slightly) outdated before they are uploaded. I would suggest always first referring to the corresponding GitHub repo in this case: https://github.com/PatrickAlphaC/web3_py_simple_storage
For all the following sections of this course please
Good luck and have fun
nanobite