From 35ebf74f4ca55281c1a402d058aad79b7ca86199 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 31 Aug 2023 06:53:52 -0400 Subject: [PATCH] fix: need to use unpacked data from signed message --- src/messages/signedMessage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages/signedMessage.ts b/src/messages/signedMessage.ts index fbd4ec3..3566fd3 100644 --- a/src/messages/signedMessage.ts +++ b/src/messages/signedMessage.ts @@ -12,7 +12,7 @@ export default async function ( ) { const sm = await node.services.p2p.unpackAndVerifySignature(data); const u = Unpacker.fromPacked(sm.message); - const method = data.unpackInt(); + const method = u.unpackInt(); if (method !== null && messages.has(method)) { await messages.get(method)?.(node, peer, u, sm, verifyId);