Replies: 2 comments 1 reply
-
The code is right and working fine
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok, that’s great. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am currently at lesson 6, and getting some issues with the deploy.js file regarding the .deployed() function. However, after looking through the internet it seems that this happens due to some new hardhat updates.
When looking at their documentation, they say this now for deploying a contract, using the .deployContract() and .waitForDeployment() functions: https://hardhat.org/hardhat-runner/docs/guides/deploying. In addition, I found this article: https://dev.to/muratcanyuksel/deploying-smart-contracts-with-the-new-hardhat-update-576i
Based on this, I have updated my deploy.js file accordingly to import hre and run the updated code:
Could anyone check or confirm that this is right? This new code seems to be running fine, and the old code is not working for me. I am curious if my research was right and that this approach does not hamper progress in future sections. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions