waku-rlnv1-contract/deploy/002_deploy_rln_registry.ts
2023-08-03 17:20:25 +05:30

23 lines
629 B
TypeScript

import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getUnnamedAccounts } = hre;
const { deploy } = deployments;
const [deployer] = await getUnnamedAccounts();
const poseidonHasherAddress = (await deployments.get("PoseidonHasher"))
.address;
await deploy("WakuRlnRegistry", {
from: deployer,
log: true,
args: [poseidonHasherAddress],
});
};
export default func;
func.tags = ["WakuRlnRegistry"];
func.dependencies = ["PoseidonHasher"];