Replies: 2 comments 1 reply
-
I think you're not waiting for deployment before logging the contract. console.log("Deploying contract...");
const contract = await contractFactory.deploy({ gasLimit: 3000000 });
await contract.waitForDeployment();
const contractAdr = await contract.getAddress();
console.log(`Contract deployed to ${contractAdr}`); Try this, if it doesn't work share the error in the console. |
Beta Was this translation helpful? Give feedback.
1 reply
-
zhttps://github.com/PatrickAlphaC/ethers-simple-storage-fcc/issues/111#issuecomment-1935113880 This works! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am having an issue getting the deployment: I get an error but I see a contract up on the chain and blocks are made. I am not getting the same confirmation as the video.
I did have to change a few things in my code, such as importing fs instead of 'fs-extra' and using: ethers.JsonRpcProvider("http://127.0.0.1:7545"); without "provider" after doing some research online my IDE and AI helped me debug into changing them to newer versions
this is my code:
and this is my error:
Beta Was this translation helpful? Give feedback.
All reactions