]> git.codecow.com Git - libnemo.git/commitdiff
Fix string type check.
authorChris Duncan <chris@zoso.dev>
Mon, 1 Dec 2025 07:20:54 +0000 (23:20 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 1 Dec 2025 07:20:54 +0000 (23:20 -0800)
src/lib/crypto/secp256k1.ts

index e59e0e5aea2e0f7d44f1d6220d9e584ccedb2e54..b8094b546ee92a253cfe7976a1c49bbb58e8ccb4 100644 (file)
@@ -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)