Files
zkAuth/backend/scripts/deploy_zkwalletfactory.ts
2022-09-23 13:59:23 +05:30

18 lines
493 B
TypeScript

import { ethers } from 'hardhat'
async function main() {
const zkWalletFactory = await ethers.getContractFactory('ZkWalletFactory')
const ZkWalletFactory = await zkWalletFactory.deploy()
await ZkWalletFactory.deployed()
console.log(`ZkWalletFactory successfully deployed to ${ZkWalletFactory.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
})