fix: need to use unpacked data from signed message

This commit is contained in:
Derrick Hammer 2023-08-31 06:53:52 -04:00
parent e342982163
commit 35ebf74f4c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ export default async function (
) { ) {
const sm = await node.services.p2p.unpackAndVerifySignature(data); const sm = await node.services.p2p.unpackAndVerifySignature(data);
const u = Unpacker.fromPacked(sm.message); const u = Unpacker.fromPacked(sm.message);
const method = data.unpackInt(); const method = u.unpackInt();
if (method !== null && messages.has(method)) { if (method !== null && messages.has(method)) {
await messages.get(method)?.(node, peer, u, sm, verifyId); await messages.get(method)?.(node, peer, u, sm, verifyId);