Skip to content

Commit

Permalink
same secrets fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed May 14, 2024
1 parent fa883a6 commit 20e7b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/accounts/src/testing/create_account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function createAccounts(
const accounts = [];

if (secrets.length == 0) {
secrets = Array(numberOfAccounts).fill(Fr.random());
secrets = Array.from({ length: numberOfAccounts }, () => Fr.random());
} else if (secrets.length > 0 && secrets.length !== numberOfAccounts) {
throw new Error('Secrets array must be empty or have the same length as the number of accounts');
}
Expand Down

0 comments on commit 20e7b2b

Please sign in to comment.