Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

fix: eth_subscribe logs #2268

Merged
merged 9 commits into from
Feb 3, 2022
Merged

fix: eth_subscribe logs #2268

merged 9 commits into from
Feb 3, 2022

Conversation

MicaiahReid
Copy link
Contributor

Previously, logs returned via eth_subscribe("logs") returned all logs in an array. Geth's logging and Ganache v6 emit separately for each event. This change makes it so we emit separately for each log once again.

Also, I've added some tests for filtering eth_subscribe("logs") events.

Copy link
Member

@davidmurdoch davidmurdoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really great. Especially those new tests!

src/chains/ethereum/ethereum/src/api.ts Outdated Show resolved Hide resolved
src/chains/ethereum/ethereum/tests/api/eth/logs.test.ts Outdated Show resolved Hide resolved
src/chains/ethereum/ethereum/tests/api/eth/logs.test.ts Outdated Show resolved Hide resolved
@MicaiahReid MicaiahReid changed the title Fix/eth subscribe logs fix: eth subscribe logs Feb 3, 2022
@davidmurdoch davidmurdoch changed the title fix: eth subscribe logs fix: eth_subscribe logs Feb 3, 2022
@MicaiahReid MicaiahReid merged commit 4716411 into develop Feb 3, 2022
@MicaiahReid MicaiahReid deleted the fix/eth_subscribe-logs branch February 3, 2022 19:21
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