I am getting this error while deploying my smart contract
const main = async() => {
const contractFactory = await ethers.getContractFactory( TwitterContract );
const contract = await contractFactory.deploy();
//await contract.deployed();
console.log("Contract deployed to: ", contract.address);
}
const runMain = async() => {
try {
await main();
process.exit(0);
} catch(error) {
console.log(error);
process.exit(1);
}
}
runMain();
this is the deploy.js script I am using to deploy my smart contract
"devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^3.0.0",
"hardhat": "^2.15.0"
},
"dependencies": {
"@ethersproject/contracts": "^5.7.0",
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13",
"chai": "^4.3.7",
"dotenv": "^16.2.0",
"ethers": "^5.5.0"
}
This are the dependencies