diff --git a/deploy/003_deploy_rln.ts b/deploy/002_deploy_rln.ts similarity index 71% rename from deploy/003_deploy_rln.ts rename to deploy/002_deploy_rln.ts index 3a800c4..0ad1612 100644 --- a/deploy/003_deploy_rln.ts +++ b/deploy/002_deploy_rln.ts @@ -9,14 +9,14 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const poseidonHasherAddress = (await deployments.get("PoseidonHasher")) .address; - const rlnVerifierAddress = (await deployments.get("Verifier")).address; await deploy("RLN", { from: deployer, log: true, - args: [1000000000000000, 20, poseidonHasherAddress, rlnVerifierAddress], + args: [[], poseidonHasherAddress], }); }; + export default func; func.tags = ["RLN"]; -func.dependencies = ["PoseidonHasher", "RlnVerifier"]; +func.dependencies = ["PoseidonHasher"]; diff --git a/deploy/002_deploy_rln_verifier.ts b/deploy/002_deploy_rln_verifier.ts deleted file mode 100644 index b7d356e..0000000 --- a/deploy/002_deploy_rln_verifier.ts +++ /dev/null @@ -1,16 +0,0 @@ -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(); - - await deploy("Verifier", { - from: deployer, - log: true, - }); -}; -export default func; -func.tags = ["RlnVerifier"];