diff --git a/scripts/encoding.js b/scripts/encoding.js index 39a6c357..f9b115c2 100644 --- a/scripts/encoding.js +++ b/scripts/encoding.js @@ -272,7 +272,7 @@ export function numToByteArray(num) { export function bytesToNum(bytes) { let result = 0n; for (let i = 0n; i < BigInt(bytes.length); i++) { - result += BigInt(bytes[i]) * (256n ** i); + result += BigInt(bytes[i]) * 256n ** i; } return result; }