From f8229abf66f727547fa89fcd93a1579f7d69b630 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 13 Aug 2022 20:05:51 -0400 Subject: [PATCH] *Need to shift off the first element from hexToBuf --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6af15b0..7594b24 100644 --- a/src/index.ts +++ b/src/index.ts @@ -91,7 +91,7 @@ async function handleConnect(aq: ActiveQuery) { try { // @ts-ignore socket = await dht.connect( - typeof pubkey === "string" ? hexToBuf(pubkey) : pubkey, + typeof pubkey === "string" ? hexToBuf(pubkey).shift() : pubkey, options ); } catch (e: any) {