Lesson 6: TypeError: (0 , ethers_1.getAddress) is not a function at new HardhatEthersSigner #5856
-
hi friends i was following Patrick's in lesson 6
I have compiled the Contract.
What I have tried is - But still no luck
This is the code in hardhat.config.js file:
Since I see this kind of errors are due to packages versions. This is the package.json file
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
as I am learning new things, there are many ways to solve this issue, {
"devDependencies": {
"@nomicfoundation/hardhat-ethers": "^3.0.2",
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
"@nomiclabs/hardhat-etherscan": "^3.1.7",
"@nomiclabs/hardhat-waffle": "^2.0.6",
"chai": "^4.3.7",
"dotenv": "^16.3.1",
"ethereum-waffle": "^4.0.10",
"ethers": "^5.7.2",
"hardhat": "^2.16.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-deploy": "^0.11.34",
"hardhat-gas-reporter": "^1.0.9",
"prettier": "^3.0.0",
"prettier-plugin-solidity": "^1.1.3",
"solhint": "^3.4.1",
"solidity-coverage": "^0.8.4"
}
} and import these packages, without require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require("hardhat-deploy");
require("solidity-coverage");
require("hardhat-gas-reporter");
require("hardhat-contract-sizer");
require("dotenv").config();
require("solhint"); this will work fine. |
Beta Was this translation helpful? Give feedback.
-
What worked for me is
|
Beta Was this translation helpful? Give feedback.
-
it works for me. |
Beta Was this translation helpful? Give feedback.
What worked for me is