Skip to content

Lesson 7, FundMe, ReferenceError: TypeError: Cannot read properties of undefined (reading 'length') #829

Answered by krakxn
cah311 asked this question in Q&A
Discussion options

You must be logged in to vote

Try this:

Is the name for contract MockV3Aggregator correct? Just in case there is a typo - also check if the import inside it is correct.

And in hardhat config, replace it with this:

namedAccounts: {
        deployer: {
            default: 0,
        },
        users: {
            default: 0,
        },
    },

If nothing works - try cloning the repo. Cheers.

Replies: 2 comments 20 replies

Comment options

You must be logged in to vote
7 replies
@cah311
Comment options

@cah311
Comment options

@Maakai123
Comment options

@cah311
Comment options

@cah311
Comment options

Comment options

You must be logged in to vote
13 replies
@Sugunaramkumar
Comment options

@Ritik-Agarwal50
Comment options

@krakxn
Comment options

@DEFIdaniel1
Comment options

@krakxn
Comment options

Answer selected by cah311
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
10 participants