File tree 1 file changed +3
-3
lines changed
packages/client/src/core/type
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export function uint8ArrayToHex(value: Uint8Array) {
19
19
}
20
20
21
21
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 ) ) ) ;
23
23
}
24
24
25
25
export function hexStringFromBuffer ( buf : Buffer , includePrefix = false ) : HexString {
@@ -163,8 +163,8 @@ export function isBigNumber(val: unknown): boolean {
163
163
if ( val == null || typeof ( val as any ) . constructor !== 'function' ) {
164
164
return false ;
165
165
}
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' ;
168
168
}
169
169
170
170
export function range ( start : number , stop : number ) : number [ ] {
You can’t perform that action at this time.
0 commit comments