waku-rlnv1-contract/deploy/002_deploy_rln.ts
2023-07-31 11:42:07 +05:30

23 lines
617 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("WakuRln", {
from: deployer,
log: true,
args: [[], poseidonHasherAddress],
});
};
export default func;
func.tags = ["WakuRln"];
func.dependencies = ["PoseidonHasher"];