Skip to content

Lesson 9: TypeError: ethers.getContract is not a function #523

Answered by gonzales17
su-adam asked this question in Q&A
Discussion options

You must be logged in to vote

"ethers" should come from "hardhat". So remove this line:

const { ethers } = require("ethers")

And modify the line below it to read:

const { network, ethers } = require("hardhat")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@su-adam
Comment options

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