Lesson 9 : TypeError: Cannot read properties of undefined (reading 'add') #5831
-
This is my GitHub repo : https://github.com/MrPositive0709/hardhat-smartcontract-lottery-fcc I can not deploy my smart contract with this is the whole bug : root@DESKTOP-D1RUUTB:~/hh-fcc/hardhat-smartcontract-lottery-fcc# hh deploy TypeError: Cannot read properties of undefined (reading 'add') { this is my hardhat-config.js : `require("@nomiclabs/hardhat-waffle"); /** @type import('hardhat/config').HardhatUserConfig */ const SEPOLIA_RPC_URL = process.env.SEPOLIA_RPC_URL; module.exports = { |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
In ethers v6, the add function of big numbers data type is removed. |
Beta Was this translation helpful? Give feedback.
-
you're missing a lot of things. "@nomicfoundation/hardhat-verify": "^1.0.3",
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13", 2- module.exports.tags = ["all", "mocks"]; 3- 4- 5- And there are some issues with your test, try to figure out by your own. |
Beta Was this translation helpful? Give feedback.
I forgot to tell you to add these requirements only into
hardhat.config.js
file