Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
fix: make contract address lower case in room topic (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
nduchak authored Nov 23, 2020
1 parent 3d092b7 commit 3c23304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/communication/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let _messageHandler: MessageHandler = messageHandler()
export const rooms = new Map<string, Room>()

export function getRoomTopic (offerId: string): string {
return `${config.get<string>('blockchain.networkId')}:${config.get<string>(`${STORAGE_MANAGER}.contractAddress`)}:${offerId}`
return `${config.get<string>('blockchain.networkId')}:${config.get<string>(`${STORAGE_MANAGER}.contractAddress`).toLowerCase()}:${offerId}`
}

export function getRoom (topic: string): Room | undefined {
Expand Down

0 comments on commit 3c23304

Please sign in to comment.