From 08becf1b77fafea304c3813f8ab9288e2a710791 Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Wed, 15 Jun 2022 15:19:28 +0200 Subject: [PATCH] fix: creation of message ID --- packages/status-js/src/utils/payload-to-id.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/status-js/src/utils/payload-to-id.ts b/packages/status-js/src/utils/payload-to-id.ts index 2b2181f..5486d3c 100644 --- a/packages/status-js/src/utils/payload-to-id.ts +++ b/packages/status-js/src/utils/payload-to-id.ts @@ -5,7 +5,7 @@ export function payloadToId( payload: Uint8Array, publicKey: Uint8Array ): string { - const hash = keccak256(concatBytes(payload, publicKey)) + const hash = keccak256(concatBytes(publicKey, payload)) // order matters const hex = bytesToHex(hash) return `0x${hex}`