Skip to content

Commit 738852d

Browse files
committed
fix: lint issues
1 parent 53e0e79 commit 738852d

File tree

1 file changed

+3
-3
lines changed
  • packages/client/src/core/type

1 file changed

+3
-3
lines changed

packages/client/src/core/type/util.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function uint8ArrayToHex(value: Uint8Array) {
1919
}
2020

2121
export function hexStringToUint8Array(hexString: string): Uint8Array {
22-
return new Uint8Array(hexString.match(/.{1,2}/g)!.map((byte) => parseInt(byte, 16)));
22+
return new Uint8Array(hexString.match(/.{1,2}/g)!.map((byte) => Number.parseInt(byte, 16)));
2323
}
2424

2525
export function hexStringFromBuffer(buf: Buffer, includePrefix = false): HexString {
@@ -163,8 +163,8 @@ export function isBigNumber(val: unknown): boolean {
163163
if (val == null || typeof (val as any).constructor !== 'function') {
164164
return false;
165165
}
166-
const { constructor } = val as any;
167-
return typeof constructor.config === 'function' && typeof constructor.EUCLID === 'number';
166+
const { constructor: constructor_ } = val as any;
167+
return typeof constructor_.config === 'function' && typeof constructor_.EUCLID === 'number';
168168
}
169169

170170
export function range(start: number, stop: number): number[] {

0 commit comments

Comments
 (0)