LESSON 9: Error: invalid contract address or ENS name [15:19:55] #682
-
====================================================================================== Terminal is returning the above error after deploying mocks when running I was unable to find a solution online & my 01-deploy-raffle.js seems identical from the one in the course. Does anyone have a suggestion on how to fix this bug, plz? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 13 replies
-
As the error log shows, your addressOrName is undefined. Check if you already passed a value to the argument. |
Beta Was this translation helpful? Give feedback.
-
============================================================================= Above the deploy script - what am I missing? |
Beta Was this translation helpful? Give feedback.
-
Can you paste your constructor code here so I look into it? |
Beta Was this translation helpful? Give feedback.
-
Please provide the code that includes something like |
Beta Was this translation helpful? Give feedback.
-
In deployer.deploy(someContract, //some arguments), you want to make sure you pass 6 arguments of the correct data type. |
Beta Was this translation helpful? Give feedback.
-
@DorianDaSilva What does your network config look like? |
Beta Was this translation helpful? Give feedback.
-
@shaunsaker Repeated the entire lesson and still ended up with the same problem. It is starting to drive me a little crazy tbh.
================================================================================= Below the link to the Bug Repo to replicate error & debug locally if anyone is up for it. ================================================================================= The issue seems to be with Raffle.sol since it compiles properly but is not deploying. I also tried to use the code from the course repo in VsCode & remix but got the same error when running it with the rest of the files or as a standalone. I don't understand what's wrong with it. @PatrickAlphaC Do you have any suggestions to fix this please, been stuck on this for 4 days now when no one else seems to be having this issue which is a bit strange imo. Thank you! |
Beta Was this translation helpful? Give feedback.
-
I am also facing the same issue. But not find any solution. |
Beta Was this translation helpful? Give feedback.
@shaunsaker Repeated the entire lesson and still ended up with the same problem. It is starting to drive me a little crazy tbh.
=================================================================================
Below the link to the Bug Repo to replicate error & debug locally if anyone is up for it.
| https://github.com/DorianDaSilva/BugFix
=================================================================================
The issue seems to be with Raffle.sol…