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