Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Fix leading 0x in websocket logic #25

Merged
merged 2 commits into from
Jul 28, 2022
Merged

Conversation

ali-behjati
Copy link
Contributor

@ali-behjati ali-behjati commented Jul 25, 2022

Before this change, when the websocket received a new price feed update it matched the data id (without leading 0x) with a mapping of ids (possibly with leading 0x) to callbacks in order to call the callbacks. So a subscription with an id with leading 0x wouldn't work.

This will remove the leading 0x if exists in the beginning of processing price ids in sub/unsub calls to fix this problem.

Also bumps the version to 0.4.0.

@ali-behjati ali-behjati requested review from jayantk and Reisen July 25, 2022 12:18
@ali-behjati ali-behjati merged commit 15904fa into main Jul 28, 2022
@ali-behjati ali-behjati deleted the abehjati/fix-ws-0x-bug branch July 28, 2022 09:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants