fix joining

This commit is contained in:
weboko 2023-01-24 03:21:32 +01:00
parent d042be85c9
commit 7bc058d094
No known key found for this signature in database

View File

@ -36,7 +36,7 @@ function buildBigIntFromUint8Array(array: Uint8Array): bigint {
// hack for Uint8Array.map that has Uint8Array -> Uint8Array definition that prevents from mapping to other types
const hexString = (bigEndianArray as unknown as number[])
.map((b) => b.toString(16).padStart(2, "0"))
.join();
.join("");
return BigInt(`0x${hexString}`);
}