Can't deploy to hardhat network #397
Unanswered
Alejandrosd97
asked this question in
Q&A
Replies: 2 comments 2 replies
-
What's your |
Beta Was this translation helpful? Give feedback.
2 replies
-
I had this same problem, and I found that I had a spelling discrepancy between my .env file and my hardhat config file. I would recommend console.logging out your RPC URL and seeing if it is returning the correct http url. I would also check on your url to see if it is put in correctly. I wish you luck. |
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.
-
I'm currently on lesson 7 but since lesson 6 everytime I run the command 'yarn hardhat deploy' I receive the same error and I have no idea of what's happening. If I run 'yarn hardhat deploy --network rinkeby' the contract gets deployed correctly on the rinkeby network. It doesn't matter if I specify '--network hardhat', I receive the same error. I've been coding along until now so I don't know if I'm missing something but I think my code is the the same than in the video. The same error occurs when I run 'yarn hardhat node' and 'yarn hardhat test' but in this case it doesn't say:
But if I run 'yarn hardhat' it returns the list of tasks, and other tasks such as compile or clean are executed correctly.
This is the error I receive:
Thank you
Beta Was this translation helpful? Give feedback.
All reactions