TypeError: Cannot read properties of undefined (reading 'length') #598
Answered
by
xdd825
MuhammadLuqman-99
asked this question in
Q&A
-
01-deploy-lottery.js
00-deploy-mocks.js
helper-hardhat-config.js
/// |
Beta Was this translation helpful? Give feedback.
Answered by
xdd825
Jun 28, 2022
Replies: 1 comment 1 reply
-
I think the problem is in your 00-deploy-mocks.js , add ( ) behind getNamedAccounts |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MuhammadLuqman-99
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the problem is in your 00-deploy-mocks.js , add ( ) behind getNamedAccounts
const { deployer } = getNamedAccounts
should be
const { deployer } = getNamedAccounts()