Cleanup comments (#1534)

This commit is contained in:
Jaco
2022-06-15 21:47:23 +03:00
committed by GitHub
parent 5a00b146fc
commit 7ce4ed1504
-7
View File
@@ -28,13 +28,6 @@ function bnToU8a <ExtToBn extends ToBn> (value?: ExtToBn | BN | bigint | number
function bnToU8a <ExtToBn extends ToBn> (value?: ExtToBn | BN | bigint | number | null, bitLength?: number, isLe?: boolean): Uint8Array;
/** @deprecated Use bnToU8a(value?: ExtToBn | BN | bigint | number | null, options?: NumberOptions) */
function bnToU8a <ExtToBn extends ToBn> (value?: ExtToBn | BN | bigint | number | null, arg1: number | NumberOptions = DEFAULT_OPTS, arg2 = true): Uint8Array {
// const { bitLength, isLe, isNegative }: NumberOptions = objectSpread(
// { bitLength: -1, isLe: true, isNegative: false },
// isNumber(arg1)
// ? { bitLength: arg1, isLe: arg2 }
// : arg1
// );
const { bitLength = -1, isLe = true, isNegative = false } = isNumber(arg1)
? { bitLength: arg1, isLe: arg2 }
: arg1;