Lesson-9: Error: TypeError: Cannot read properties of undefined (reading 'length') #782
-
After creating both deployment scripts:
When I finally run The script deploys successfully: Local network detected! Deploying Mocks.. And right after I get this error: TypeError: Cannot read properties of undefined (reading 'length') I've tried to Google the issue but to no avail. What could be the issue? The Mock contract gets deployed fine but why does it also give an error afterwards? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Could you send the code for your |
Beta Was this translation helpful? Give feedback.
-
Oh I think it's fixed now. I saw another similar question posted in this Repo's discussions. Thanks for getting to me so quick :) |
Beta Was this translation helpful? Give feedback.
Oh I think it's fixed now. I saw another similar question posted in this Repo's discussions.
The problem was getNamedAccounts() was missing '()'.
Thanks for getting to me so quick :)