소스 검색

GramJS : Fix small cast bug

painor 5 년 전
부모
커밋
ab2acac80f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)