import { ethers } from "hardhat"; async function main() { const [deployer] = await ethers.getSigners(); console.log("Deploying CipherAuth with account:", deployer.address); const CipherAuth = await ethers.getContractFactory("CipherAuth"); const cipherAuth = await CipherAuth.deploy(); console.log("CipherAuth deploy tx sent. Hash:", cipherAuth.deploymentTransaction()?.hash); await cipherAuth.waitForDeployment(); console.log("CipherAuth deployed to:", await cipherAuth.getAddress()); } main().catch((error) => { console.error(error); process.exitCode = 1; });