diff --git a/yarn-project/foundation/src/serialize/serialize.ts b/yarn-project/foundation/src/serialize/serialize.ts index 758a466dcd5..c610b5fea64 100644 --- a/yarn-project/foundation/src/serialize/serialize.ts +++ b/yarn-project/foundation/src/serialize/serialize.ts @@ -152,7 +152,7 @@ export function serializeToBufferArray(...objs: Bufferable[]): Buffer[] { ret.push(boolToBuffer(obj)); } else if (typeof obj === 'bigint') { // Throw if bigint does not fit into 32 bytes - if (obj > BigInt('0xffffffffffffffffffffffffffffffff')) { + if (obj > BigInt('0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff')) { throw new Error(`BigInt ${obj} does not fit into 32 bytes`); } ret.push(serializeBigInt(obj));