dagger-contracts/deploy/verifier.js
2024-01-25 13:08:10 +01:00

10 lines
386 B
JavaScript

const { loadVerificationKey } = require ("../verifier/verifier.js")
module.exports = async ({ deployments, getNamedAccounts, network }) => {
const { deployer } = await getNamedAccounts()
const verificationKey = loadVerificationKey(network.name)
await deployments.deploy("Groth16Verifier", { args: [verificationKey], from: deployer })
}
module.exports.tags = ["Groth16Verifier"]