Lesson 4: Property byetcode not found on Contract class. #744
-
With my code here: import json with open("./SimpleStorage.sol", "r") as file: compiled_sol = compile_standard( with open("compiled_code.json", "w") as file: #get bytecode get abiabi = compiled_sol["contracts"]["SimpleStorage.sol"]["SimpleStorage"]["abi"] #for connecting to ganache learn ganache command line #Create the contract in python I am getting the error: I don't understand what I'm getting wrong. I am using a docker to run everything on python 3.8 because cytoolz only works on that version so perhaps that's the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @karlMoreno you have a typo on this line:
the correct word is bytecode, no byetcode. Give it a try. |
Beta Was this translation helpful? Give feedback.
Hello @karlMoreno
you have a typo on this line:
SimpleStorage = w3.eth.contract(abi=abi, byetcode=bytecode)
the correct word is bytecode, no byetcode. Give it a try.