-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.ts
More file actions
20 lines (15 loc) · 761 Bytes
/
deploy.ts
File metadata and controls
20 lines (15 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import {ethers, upgrades} from "hardhat";
async function main() {
const [owner] = await ethers.getSigners();
const signatureKeyWallet = await ethers.Wallet.createRandom();
const ClaimIssuer = await ethers.getContractFactory("ClaimIssuer");
const claimIssuer = await upgrades.deployProxy(ClaimIssuer, [owner.address, signatureKeyWallet.address]);
await claimIssuer.deployed();
console.log(`ClaimIssuer deployed to ${claimIssuer.address} with owner ${owner.address} and signature key ${signatureKeyWallet.address} (private key: ${signatureKeyWallet.privateKey})`);
}
// We recommend this pattern to be able to use async/await everywhere
// and properly handle errors.
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});