Files
contracts/scripts/deploy.ts
2022-05-02 19:32:18 +02:00

19 lines
523 B
TypeScript

import { run } from "hardhat"
async function main() {
const { address: verifierAddress } = await run("deploy:verifier", { logs: false })
const { address: interepAddress } = await run("deploy:interep", {
logs: false,
verifiers: [{ merkleTreeDepth: 20, contractAddress: verifierAddress }]
})
console.log(`Interep contract has been deployed to: ${interepAddress}`)
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error)
process.exit(1)
})