Lesson 7 : TypeError: Cannot read properties of undefined (reading 'length') #5468
-
yarn run v1.22.19
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@usman-2000 Yes you are not using the length property, but you are using the |
Beta Was this translation helpful? Give feedback.
@usman-2000 Yes you are not using the length property, but you are using the
getNamedAccounts
function in your deploy script which is checking for any named accounts in the hardhat.config.js file but it does not find the named accounts. Are you sure you addednamedAccounts
object in config file?