Cannot read properties of undefined (reading 'length') when deploying Mock Aggregator #5144
-
I am trying to deploy Mock Aggregator following the tutorial at 10:49:34, but getting the error as TypeError: Cannot read properties of undefined (reading 'length') This error is from the internal module called hardhat deploy at getFrom (C:\Users\91882\Desktop\Blockchain\Blockchain\03-Fundme\node_modules*hardhat-deploy\src\helpers.ts*:1727:14) Can someone please help? My Mock Deply Script
Helper Hardhat Config
Hardhat Config:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@hariprasad9899 Add this in your hardhat.config.js file; namedAccounts: {
deployer: {
default: 0,
},
}, |
Beta Was this translation helpful? Give feedback.
-
I'm also facing the same error even after updating my hardhat config file I'm unable to get it solved please help me to figure it out My Mock Deploy Script
My hardhat.config
Error:
|
Beta Was this translation helpful? Give feedback.
@hariprasad9899 Add this in your hardhat.config.js file;