cipher / scripts /deploy_auth.ts
salmanch123
feat: push fixed compilation tsconfig
60050be
Raw
History Blame Contribute Delete
582 Bytes
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;
});