rln-interep-contract/deploy/002_deploy_verifier_test.ts

25 lines
660 B
TypeScript
Raw Normal View History

2022-11-25 11:38:38 +05:30
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
2022-11-28 10:32:53 +05:30
import { isDevNet } from "../common";
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
2022-11-25 11:38:38 +05:30
const { deployments, getUnnamedAccounts } = hre;
const { deploy } = deployments;
const [deployer] = await getUnnamedAccounts();
2022-11-28 10:32:53 +05:30
await deploy("VerifierTest", {
2022-11-25 11:38:38 +05:30
from: deployer,
log: true,
});
};
export default func;
2022-11-28 10:32:53 +05:30
func.tags = ["VerifierTest"];
// skip when running on mainnet
func.skip = async (hre: HardhatRuntimeEnvironment) => {
2022-11-25 11:38:38 +05:30
if (isDevNet(hre.network.name)) {
return false;
}
return true;
};