Skip to content

Commit

Permalink
fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgo0018 committed Jun 7, 2024
1 parent 14050b6 commit 576d4c6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/hardhat/deploy/10_configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import fs from "fs";
import { Keypair } from "maci-domainobjs";

import { MACIWrapper, Verifier, VkRegistry } from "../typechain-types";
import { intStateTreeDepth, messageBatchDepth, messageTreeDepth, voteOptionTreeDepth } from "../constants";

function fetchOrCreateKeyPair(filePath: string) {
let keypair: Keypair | null = null;
Expand Down Expand Up @@ -35,10 +36,10 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir

const tx = await maci.setConfig(
{
intStateTreeDepth: 1,
messageTreeSubDepth: 1,
messageTreeDepth: 2,
voteOptionTreeDepth: 2,
intStateTreeDepth: intStateTreeDepth,
messageTreeSubDepth: messageBatchDepth,
messageTreeDepth: messageTreeDepth,
voteOptionTreeDepth: voteOptionTreeDepth,
},
coordinatorKeypair.pubKey.asContractParam(),
await verifier.getAddress(),
Expand Down

0 comments on commit 576d4c6

Please sign in to comment.