From f22d744732c639b57b489835d29d501048fdb1bd 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 2b2181f1..5486d3cb 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}`