diff --git a/packages/circuits/tests/email-verifier.test.ts b/packages/circuits/tests/email-verifier.test.ts index e70196df..ee2c0cfc 100644 --- a/packages/circuits/tests/email-verifier.test.ts +++ b/packages/circuits/tests/email-verifier.test.ts @@ -254,7 +254,7 @@ describe("EmailVerifier : With body masking", () => { maxBodyLength: 768, ignoreBodyHashCheck: false, turnOnBodyMasking: true, - mask, + mask: mask.map((value) => !!value), } ); diff --git a/packages/helpers/src/input-generators.ts b/packages/helpers/src/input-generators.ts index 65262b99..45223c3c 100644 --- a/packages/helpers/src/input-generators.ts +++ b/packages/helpers/src/input-generators.ts @@ -12,7 +12,7 @@ type CircuitInput = { emailBodyLength?: string; precomputedSHA?: string[]; bodyHashIndex?: string; - mask?: number[]; + mask?: boolean[]; }; type InputGenerationArgs = { @@ -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[]; }; /**