Skip to content

Commit

Permalink
Update test/helpers/math.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestognw authored Nov 23, 2023
1 parent 0b0ac29 commit 71ce6f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers/math.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
// sum of integer / bignumber
sum: (...args) => args.reduce((acc, n) => acc + n, 0),
bigint_sum: (...args) => args.reduce((acc, n) => acc + n, 0n),
bigintSum: (...args) => args.reduce((acc, n) => acc + n, 0n),
BNsum: (...args) => args.reduce((acc, n) => acc.add(n), web3.utils.toBN(0)),
// min of integer / bignumber
min: (...args) => args.slice(1).reduce((x, y) => (x < y ? x : y), args[0]),
Expand Down

0 comments on commit 71ce6f0

Please sign in to comment.