Replies: 3 comments 5 replies
-
Could you upload your repo here |
Beta Was this translation helpful? Give feedback.
3 replies
-
Hi @cah311! I would suggest you to add some package in your Here is the package to be added on the file: require("@nomicfoundation/hardhat-verify");
require('@nomicfoundation/hardhat-ethers');
require('hardhat-deploy-ethers'); I hope this will work for you as well 👍🏻 |
Beta Was this translation helpful? Give feedback.
1 reply
-
or try this, {
"name": "hardhat-fund-me",
"auther": "Carson Halter",
"version": "1.0.0",
"devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^2.0.2",
"@nomicfoundation/hardhat-verify": "^1.0.2",
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
"dotenv": "^16.3.1",
"ethers": "^5.7.2",
"hardhat": "^2.16.1",
"hardhat-deploy": "^0.11.34",
"@chainlink/contracts": "^0.3.1",
"hardhat-gas-reporter": "^1.0.7",
"prettier-plugin-solidity": "^1.0.0-beta.19",
"solhint": "^3.3.7",
"solidity-coverage": "^0.7.18"
},
"scripts": {
"test": "yarn hardhat test",
"test:staging": "yarn hardhat test --network sepolia",
"lint": "yarn solhint 'contracts/*.sol'",
"lint:fix": "yarn solhint 'contracts/*.sol' --fix",
"format": "yarn prettier --write .",
"coverage": "yarn hardhat coverage"
}
}
require("@nomicfoundation/hardhat-toolbox")
require("dotenv").config()
require("hardhat-gas-reporter")
require("solidity-coverage")
require("hardhat-deploy") |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here is the error I am getting:
There is not alot on this error as it seems fairly new. I only seen one solution and that was to delete hardhat-ethers, upgrade ethers to 6, and run deploy scripts manually.
Would this not make the deploy scripts we write for this lesson redundant? Is there a better solution that I am just missing?
Beta Was this translation helpful? Give feedback.
All reactions