const main = async () => { const [deployer] = await hre.ethers.getSigners(); const accountBalance = await deployer.getBalance(); console.log("Deploying contracts with account: ", deployer.address); console.log("Account balance: ", accountBalance.toString()); const contractFactory = await hre.ethers.getContractFactory("WKLC"); const contract = await contractFactory.deploy(); await contract.deployed(); console.log("WKLC address: ", contract.address); }; const runMain = async () => { try { await main(); process.exit(0); } catch (error) { console.log(error); process.exit(1); } }; runMain();