mirror of
https://github.com/vacp2p/rln-interep-contract.git
synced 2025-02-28 14:10:35 +00:00
25 lines
670 B
TypeScript
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;
|
|
};
|