Skip to content

Commit f59bd74

Browse files
committed
added deploy script
1 parent 4221069 commit f59bd74

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

scripts/deploy.ts

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { ethers } from "hardhat";
2+
3+
async function main() {
4+
const provider = new ethers.providers.JsonRpcProvider(
5+
`https://eth-goerli.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
6+
);
7+
8+
const domainName = "stamp-vc-verifier-test";
9+
const StampVcVerifier = await ethers.getContractFactory("StampVcVerifier");
10+
const stampVcVerifier = await StampVcVerifier.deploy(domainName, "0x898d3B3756f04FDb1C9EB5c3fBD66DF8e5332f56");
11+
12+
await stampVcVerifier.deployed();
13+
14+
console.log("StampVerifier Contracts have been deployed", stampVcVerifier.address);
15+
}
16+
17+
// We recommend this pattern to be able to use async/await everywhere
18+
// and properly handle errors.
19+
main().catch(error => {
20+
console.error(error);
21+
process.exitCode = 1;
22+
});

0 commit comments

Comments
 (0)