From a9395564f3f821e18d34b7f8ee53f4d4389117ae Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 30 Nov 2025 23:20:54 -0800 Subject: [PATCH] Fix string type check. --- src/lib/crypto/secp256k1.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3