Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Sep 17, 2024
1 parent 142a64e commit cd301be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cd301be

Please sign in to comment.