import { ethers } from "hardhat"; async function main() { const [deployer] = await ethers.getSigners(); console.log("Deploying CipherTrust with account:", deployer.address); const CipherTrust = await ethers.getContractFactory("CipherTrust"); const cipherTrust = await CipherTrust.deploy(); console.log("CipherTrust deploy tx sent. Hash:", cipherTrust.deploymentTransaction()?.hash); await cipherTrust.waitForDeployment(); console.log("CipherTrust deployed to:", await cipherTrust.getAddress()); 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; });