10 lines
386 B
JavaScript
Raw Normal View History

const { loadVerificationKey } = require ("../verifier/verifier.js")
2024-01-05 12:27:53 +01:00
module.exports = async ({ deployments, getNamedAccounts, network }) => {
2024-01-05 12:27:53 +01:00
const { deployer } = await getNamedAccounts()
const verificationKey = loadVerificationKey(network.name)
await deployments.deploy("Groth16Verifier", { args: [verificationKey], from: deployer })
2024-01-05 12:27:53 +01:00
}
module.exports.tags = ["Groth16Verifier"]