mirror of
https://github.com/3lLobo/zkAuth.git
synced 2026-01-13 22:37:56 -05:00
25 lines
806 B
TypeScript
25 lines
806 B
TypeScript
import { ethers } from 'hardhat'
|
|
|
|
async function main() {
|
|
const hashCheckVerifier = await ethers.getContractFactory('HashCheckVerifier')
|
|
const HashCheckVerifier = await hashCheckVerifier.deploy()
|
|
|
|
await HashCheckVerifier.deployed()
|
|
|
|
console.log(`HashCheckVerifier successfully deployed to ${HashCheckVerifier.address}`)
|
|
|
|
const otpMerkleTreeVerifier = await ethers.getContractFactory('OtpMerkleTreeVerifier')
|
|
const OtpMerkleTreeVerifier = await otpMerkleTreeVerifier.deploy()
|
|
|
|
await OtpMerkleTreeVerifier.deployed()
|
|
|
|
console.log(`OtpMerkleTreeVerifier successfully deployed to ${OtpMerkleTreeVerifier.address}`)
|
|
}
|
|
|
|
// 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
|
|
})
|