Skip to content

Commit

Permalink
fix: avoid export prompt in cli/sdk (privacy-scaling-explorations#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
kittybest authored Jun 21, 2024
1 parent 4e792c4 commit 8479dd7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 26 deletions.
2 changes: 1 addition & 1 deletion cli/ts/commands/extractVkToFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { extractVk } from "maci-circuits";

import fs from "fs";

import { ExtractVkToFileArgs } from "../utils";
import { ExtractVkToFileArgs } from "../utils/interfaces";

/**
* Command to confirm that the verifying keys in the contract match the
Expand Down
20 changes: 7 additions & 13 deletions cli/ts/commands/mergeMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,13 @@ import {
AccQueue__factory as AccQueueFactory,
} from "maci-contracts/typechain-types";

import {
DEFAULT_SR_QUEUE_OPS,
banner,
contractExists,
currentBlockTimestamp,
info,
logError,
logGreen,
logYellow,
success,
readContractAddress,
type MergeMessagesArgs,
} from "../utils";
import type { MergeMessagesArgs } from "../utils/interfaces";

import { banner } from "../utils/banner";
import { contractExists, currentBlockTimestamp } from "../utils/contracts";
import { DEFAULT_SR_QUEUE_OPS } from "../utils/defaults";
import { readContractAddress } from "../utils/storage";
import { info, logError, logGreen, logYellow, success } from "../utils/theme";

/**
* Merge the message queue on chain
Expand Down
18 changes: 6 additions & 12 deletions cli/ts/commands/mergeSignups.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import { MACI__factory as MACIFactory, Poll__factory as PollFactory } from "maci-contracts/typechain-types";

import {
banner,
contractExists,
currentBlockTimestamp,
info,
logError,
logGreen,
logYellow,
success,
readContractAddress,
type MergeSignupsArgs,
} from "../utils";
import type { MergeSignupsArgs } from "../utils/interfaces";

import { banner } from "../utils/banner";
import { contractExists, currentBlockTimestamp } from "../utils/contracts";
import { readContractAddress } from "../utils/storage";
import { info, logError, logGreen, logYellow, success } from "../utils/theme";

/**
* Command to merge the signups of a MACI contract
Expand Down

0 comments on commit 8479dd7

Please sign in to comment.