Skip to content

Commit

Permalink
fix: pushFieldElements(prime,cur,acc)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefbiiko committed Feb 26, 2024
1 parent 61d4618 commit fb97cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function toBigInt(x) {
function pushFieldElements(prime, inputs, out) {
return inputs.reduce((acc, cur) => {
if (Array.isArray(cur)) {
return pushFieldElements(cur, acc)
return pushFieldElements(prime, cur, acc)
} else {
Array.prototype.push.apply(acc, toBytesBE(cur % prime, 32))
return acc
Expand Down

0 comments on commit fb97cfa

Please sign in to comment.