Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jul 9, 2024
1 parent b473157 commit 79bd1a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yarn-project/end-to-end/src/e2e_key_registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ describe('Key Registry', () => {
{
// We call toBuffer and fromBuffer first to ensure that we get a deep copy
const publicKeysFields = PublicKeys.fromBuffer(account.publicKeys.toBuffer()).toFields();
const randomIndex = Math.floor(Math.random() * publicKeysFields.length);
const nonIsInfiniteIndices = [0, 1, 3, 4, 6, 7, 9, 10];
const randomIndex = nonIsInfiniteIndices[Math.floor(Math.random() * nonIsInfiniteIndices.length)];

publicKeysFields[randomIndex] = Fr.random();

invalidPublicKeys = PublicKeys.fromFields(publicKeysFields);
Expand Down

0 comments on commit 79bd1a2

Please sign in to comment.