File size: 582 Bytes
60050be
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
});