fix bigint type (#1079)

This commit is contained in:
Nantian
2021-08-12 10:00:58 +02:00
committed by GitHub
parent 0202a1f1d4
commit 2e4de2093c
15 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ const MAX_U32 = new BN(2).pow(new BN(32 - 2)).subn(1);
* console.log(compactToU8a(511, 32)); // Uint8Array([0b11111101, 0b00000111])
* ```
*/
export function compactToU8a (_value: BN | BigInt | number): Uint8Array {
export function compactToU8a (_value: BN | bigint | number): Uint8Array {
const value = bnToBn(_value);
if (value.lte(MAX_U8)) {