Skip to content

Commit

Permalink
fix: updated mask type
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-londhe committed Jul 13, 2024
1 parent 70174a6 commit 8c0f337
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/circuits/tests/email-verifier.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ describe("EmailVerifier : With body masking", () => {
maxBodyLength: 768,
ignoreBodyHashCheck: false,
turnOnBodyMasking: true,
mask,
mask: mask.map((value) => !!value),
}
);

Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/src/input-generators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type CircuitInput = {
emailBodyLength?: string;
precomputedSHA?: string[];
bodyHashIndex?: string;
mask?: number[];
mask?: boolean[];
};

type InputGenerationArgs = {
Expand All @@ -21,7 +21,7 @@ type InputGenerationArgs = {
shaPrecomputeSelector?: string;
maxHeadersLength?: number; // Max length of the email header including padding
maxBodyLength?: number; // Max length of the email body after shaPrecomputeSelector including padding
mask?: number[];
mask?: boolean[];
};

/**
Expand Down

0 comments on commit 8c0f337

Please sign in to comment.