Replies: 7 comments 4 replies
-
I think that you in your "00-deploy-mocks.js", you missing a ".(dot)" on the "require("../helper-hardhat-config")" |
Beta Was this translation helpful? Give feedback.
-
Yeah, agreed with Alanle1011 . Check your file-folder structure one more time. If you put one dot in require you mean you're looking for it at same folder. But you need to go outside of your deploy folder by putting two dots in order to reach "helper-hardhat-config" |
Beta Was this translation helpful? Give feedback.
-
Yes, got it. Thanks!
Here is my "00-deploy-mocks.js" code:
My "helper-hardhat-config.js" code:
|
Beta Was this translation helpful? Give feedback.
-
According to what error code says, that error showed up at "01-deploy-fund-me.js" which you didn't provide above. Seems like you've forgotten to implement your "developmentChains" variable from your "helper-hardhat-config". Simply import it with
And if this doesn't fix your issue please provide your "01-deploy-fund-me" file so i can check :) |
Beta Was this translation helpful? Give feedback.
-
here is my "01-deploy-fund-me.js":
Now I am getting error :
|
Beta Was this translation helpful? Give feedback.
-
I'm not sure where you used toLowerCase but it should be "toLowerCase()". With the parantheses.
From: deployer |
Beta Was this translation helpful? Give feedback.
-
I'm not sure why the error message said that but i guess hardhat tried to run "deploy" instead of "deployer". Because you were put deploy here previously. So hardhat tried to run deploy function one more time and somewhere in hardhat-deploy package, toLowerCase didn't worked out. That's why error message said it i guess. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I am getting this error and I am not able to understand where is the mistake I did.
My helper-hardhat-config.js file is in the same directory as hardhat.config file.
Here is the error:
.
.
Here is my code snippet of 01-deploy-fund-me code:
@alymurtazamemon
Beta Was this translation helpful? Give feedback.
All reactions