rln-interep-contract/deploy/002_deploy_verifier.ts
2022-12-06 13:46:27 +05:30

25 lines
670 B
TypeScript

import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { useRealVerifier } from "../common";
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getUnnamedAccounts } = hre;
const { deploy } = deployments;
const [deployer] = await getUnnamedAccounts();
await deploy("Verifier20", {
from: deployer,
log: true,
});
};
export default func;
func.tags = ["Verifier20"];
// skip when running on mainnet
func.skip = async (hre: HardhatRuntimeEnvironment) => {
if (useRealVerifier(hre.network.name)) {
return false;
}
return true;
};