Skip to content

Lesson 7 FundMe dot test dot js - Error when running unit test #551

Answered by tuhindasv0
x-gee asked this question in Q&A
Discussion options

You must be logged in to vote

hi @x-gee

i think your code is failing here

deployer = (await getNamedAccounts()).deployer

did you added below config in hardhat.config.js

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

if not ..could you please try running the test after adding those lines

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@x-gee
Comment options

@tuhindasv0
Comment options

@harshuo2
Comment options

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