consthre=require("hardhat");consttxargs={gasLimit:10000000,gasPrice:5000000000}asyncfunctionmain(){constaccounts=awaithre.ethers.getSigners();console.log("use account ",accounts[0].address);// We get the contract to deployconstSentry=awaithre.ethers.getContractFactory("ConsensusContract");constcontract=awaitSentry.deploy();awaitcontract.deployed();console.log("sentry deployed to:",contract.address);}// We recommend this pattern to be able to use async/await everywhere// and properly handle errors.main().then(()=>process.exit(0)).catch((error)=>{console.error(error);process.exit(1);});