Explorar el Código

GramJS : Fix small cast bug

painor hace 5 años
padre
commit
ab2acac80f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/lib/gramjs/Helpers.js

+ 1 - 1
src/lib/gramjs/Helpers.js

@@ -31,7 +31,7 @@ function readBigIntFromBuffer(buffer, little = true, signed = false) {
  * @returns {Buffer}
  */
 function readBufferFromBigInt(bigInt, bytesNumber, little = true, signed = false) {
-    console.log("will read ", BigInt)
+    bigInt = BigInt(bigInt)
     const bitLength = bigInt.bitLength()
 
     const bytes = Math.ceil(bitLength / 8)