Skip to content

Lesson 6: TypeError: (0 , ethers_1.getAddress) is not a function #5745

Closed Answered by alfaqi
affanmustafa asked this question in Q&A
Discussion options

You must be logged in to vote

you need to update "hardhat": "^2.14.1", package to "hardhat": "^2.16.0",

then import them into hardhat.config.js file, like this

require("@nomiclabs/hardhat-etherscan");
require("@typechain/hardhat");
require("@nomiclabs/hardhat-ethers");
require("dotenv").config();
require("./tasks/block-number");

and modify block-number.js like this:

require("@typechain/hardhat");
require("@nomiclabs/hardhat-ethers");

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@affanmustafa
Comment options

@alfaqi
Comment options

Answer selected by affanmustafa
@Prathyusha-acc
Comment options

Comment options

You must be logged in to vote
1 reply
@affanmustafa
Comment options

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