mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-06-03 07:50:02 +00:00
fix joining
This commit is contained in:
parent
d042be85c9
commit
7bc058d094
@ -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
|
// hack for Uint8Array.map that has Uint8Array -> Uint8Array definition that prevents from mapping to other types
|
||||||
const hexString = (bigEndianArray as unknown as number[])
|
const hexString = (bigEndianArray as unknown as number[])
|
||||||
.map((b) => b.toString(16).padStart(2, "0"))
|
.map((b) => b.toString(16).padStart(2, "0"))
|
||||||
.join();
|
.join("");
|
||||||
return BigInt(`0x${hexString}`);
|
return BigInt(`0x${hexString}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user