diff --git a/src/abstract/poseidon.ts b/src/abstract/poseidon.ts index 322732e..26b84a7 100644 --- a/src/abstract/poseidon.ts +++ b/src/abstract/poseidon.ts @@ -27,8 +27,7 @@ export function validateOpts(opts: PoseidonOpts) { // Default is 5, but for some reasons stark uses 3 let { sboxPower } = opts; if (sboxPower === undefined) sboxPower = 5; - if (!([3, 5, 7].includes(sboxPower))) - throw new Error(`Poseidon wrong sboxPower=${sboxPower}`); + if (![3, 5, 7].includes(sboxPower)) throw new Error(`Poseidon wrong sboxPower=${sboxPower}`); const _sboxPower = BigInt(sboxPower); let sboxFn = (n: bigint) => FpPow(Fp, n, _sboxPower);