New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help me in deploy.js #6309
Comments
I do not see a deply.js here? Sounds like you need to check JsonRpcProvidor. '''TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')''' |
My freind is also having this mistake so he tried some code that might solve your problem here is the solve it : async function main() { const privateKey = "0x558cc70107e27f955b18929f466564d6044269c09870c7e58ead521327ae0b12"; const abi = JSON.parse(fs.readFileSync("SimpleStorage_sol_SimpleStorage.abi", "utf8")); const contractFactory = new ethers.ContractFactory(abi, bytecode, Wallet); console.log("Deploying, please wait..."); await contract.deployed(); main() |
Hopefully it might work.. |
remove providers object from the line below so instead of :
write this :
this error maybe related to recent update which is not takken into account in this course. |
I have done Everything according to the video but I'm still getting an error also my erroe is in
deply.js
lesson 5:My code:
My Error:
The text was updated successfully, but these errors were encountered: