Skip to content

Commit

Permalink
refactor(deploy-task): fixed recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
Crisgarner committed Jun 5, 2024
1 parent bea57e0 commit 3cc00dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
"@openzeppelin/contracts": "^5.0.2",
"@zk-kit/imt.sol": "2.0.0-beta.12",
"buffer": "^6.0.3",
"circomlibjs": "^0.1.7",
"ethers": "^6.12.1",
"hardhat": "^2.22.4",
Expand Down
2 changes: 1 addition & 1 deletion contracts/tasks/deploy/maci/02-gatekeepers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ deployment.deployTask("full:deploy-gatekeepers", "Deploy gatekeepers").then((tas
const validSigner2 = deployment.getDeployConfigField<string>(EContracts.ZupassGatekeeper, "signer2", true);
let verifier: string | undefined = deployment.getDeployConfigField<string>(
EContracts.ZupassGatekeeper,
"groth16Verifier",
"zupassVerifier",
);
if (!verifier) {
const verifierContract = await deployment.deployContract({
Expand Down
7 changes: 2 additions & 5 deletions contracts/tasks/deploy/maci/08-maci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,15 @@ deployment.deployTask("full:deploy-maci", "Deploy MACI contract").then((task) =>
const maciInstanceAddress = await maciContract.getAddress();

await gatekeeperContract.setMaciInstance(maciInstanceAddress).then((tx) => tx.wait());
}

if (gatekeeper === EContracts.GitcoinPassportGatekeeper) {
} else if (gatekeeper === EContracts.GitcoinPassportGatekeeper) {
const gatekeeperContract = await deployment.getContract<GitcoinPassportGatekeeper>({
name: EContracts.GitcoinPassportGatekeeper,
address: gatekeeperContractAddress,
});
const maciInstanceAddress = await maciContract.getAddress();

await gatekeeperContract.setMaciInstance(maciInstanceAddress).then((tx) => tx.wait());
}
if (gatekeeper === EContracts.ZupassGatekeeper) {
} else if (gatekeeper === EContracts.ZupassGatekeeper) {
const gatekeeperContract = await deployment.getContract<ZupassGatekeeper>({
name: EContracts.ZupassGatekeeper,
address: gatekeeperContractAddress,
Expand Down
4 changes: 1 addition & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3cc00dc

Please sign in to comment.