From: Chris Duncan Date: Mon, 1 Dec 2025 07:20:54 +0000 (-0800) Subject: Fix string type check. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=a9395564f3f821e18d34b7f8ee53f4d4389117ae;p=libnemo.git Fix string type check. --- diff --git a/src/lib/crypto/secp256k1.ts b/src/lib/crypto/secp256k1.ts index e59e0e5..b8094b5 100644 --- a/src/lib/crypto/secp256k1.ts +++ b/src/lib/crypto/secp256k1.ts @@ -182,7 +182,7 @@ export class Secp256k1 { } static hexToBytes = (hex: string): Bytes => { const e = 'hex invalid' - if (hex !== 'string') return this.err(e) + if (typeof hex !== 'string') return this.err(e) const hl = hex.length const al = hl / 2 if (hl % 2) return this.err(e)