lesson 6 hardhat version and ethers #5913
Closed
vishnu-geek
started this conversation in
General
Replies: 1 comment
-
please paste the dependencies that you are using. {
"dependencies": {
"@nomicfoundation/hardhat-toolbox": "^2.0.2",
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers",
"@openzeppelin/contracts": "^4.9.0",
"dotenv": "^16.0.3",
"ethers": "^6.6.3",
"hardhat": "^2.16.1",
"hardhat-deploy": "^0.11.29",
"solidity-coverage": "^0.8.2"
}
} import this only this line require("@nomicfoundation/hardhat-toolbox"); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`const { ethers } = require("hardhat")
async function main() {
const SimpleStorageFactory = await ethers.getContractFactory(
"SimpleStorage",
)
console.log("deploying baby....")
const simpleStorage = await SimpleStorageFactory.deploy()
await simpleStorage.waitForDeployment()
//await simpleStorage.getAddress()
console.log(
deployed contract to:${simpleStorage.getAddress}
)}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error)
process.exit(1)
})
`
getting issue:
Error: factory runner does not support sending transactions (operation="sendTransaction", code=UNSUPPORTED_OPERATION, version=6.6.4)
Beta Was this translation helpful? Give feedback.
All reactions