TypeError: Invalid URL. Lesson 6 Hardhat Simple Storage #574
-
I have been trying to connect to the rinkeby network and deploy the contract with deploy.js. I obtained my rpc url by going to my alchemy dashboard and taking the https from the "1. Integrate with alchemy section" and it is in the .env file along with my private key.
and i currently get the error:
It seems to me there may be an issue with the URL that I am getting from the alchemy dashboard as I have tried my code as follows as well, which I have already seen suggested:
which gives the error:
When i change it to my original code at the start of my question these errors are resolved and the new error appears. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I managed to solve the issue by doing the following:
|
Beta Was this translation helpful? Give feedback.
-
did you install dotenv ? |
Beta Was this translation helpful? Give feedback.
I managed to solve the issue by doing the following: