From cd301bea557d1a53d9b5848aabbc9ee255b76bb2 Mon Sep 17 00:00:00 2001 From: janniks Date: Thu, 18 Jul 2024 17:34:15 +0200 Subject: [PATCH] chore: add comment --- packages/common/src/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/common/src/utils.ts b/packages/common/src/utils.ts index 35aa6d6a2..2e5cdbcd4 100644 --- a/packages/common/src/utils.ts +++ b/packages/common/src/utils.ts @@ -321,6 +321,7 @@ export function intToBytes(value: IntegerType, signed: boolean, byteLength: numb return bigIntToBytes(intToBigInt(value, signed), byteLength); } +//todo: add default param to `signed` (should only be needed in rare use-cases, not typical users) `next` export function intToBigInt(value: IntegerType, signed: boolean): bigint { let parsedValue = value;