Skip to content

Lesson 6: TypeError: (0 , ethers_1.getAddress) is not a function at new HardhatEthersSigner #5856

Answered by maheepatel
maheepatel asked this question in Q&A
Discussion options

You must be logged in to vote

What worked for me is

  1. Removed "main": "index.js" from the package.json (forgot to remove it while following patrick)
  2. Tried changing the version of ethers but it didn't worked. So i went with the latest version(i.e "ethers": "^6.6.3",) Followed the latest hardhat docs how to deploy contract section made the necessary changes (ex: simpleStorage.address to simpleStorage.target ).

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@maheepatel
Comment options

@vulpes231
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by maheepatel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants