From 3c23304e31cfd066dbd4133eb233aecd0250def6 Mon Sep 17 00:00:00 2001 From: Nazar Duchak <41945483+nduchak@users.noreply.github.com> Date: Mon, 23 Nov 2020 09:05:17 +0200 Subject: [PATCH] fix: make contract address lower case in room topic (#408) --- src/communication/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/communication/index.ts b/src/communication/index.ts index b0845596..cba7376f 100644 --- a/src/communication/index.ts +++ b/src/communication/index.ts @@ -24,7 +24,7 @@ let _messageHandler: MessageHandler = messageHandler() export const rooms = new Map() export function getRoomTopic (offerId: string): string { - return `${config.get('blockchain.networkId')}:${config.get(`${STORAGE_MANAGER}.contractAddress`)}:${offerId}` + return `${config.get('blockchain.networkId')}:${config.get(`${STORAGE_MANAGER}.contractAddress`).toLowerCase()}:${offerId}` } export function getRoom (topic: string): Room | undefined {