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

feat(contract): add helper to query events w/ metadata (block num + tx hash) #33

Merged
merged 2 commits into from
Jun 21, 2020

Conversation

gakonst
Copy link
Owner

@gakonst gakonst commented Jun 21, 2020

Motivation

Oftentimes, clients will want to get the logs but also check their block number / transaction hash to index them in some way. This information was not exposed before.

Solution

Add a query_with_meta function which returns a Vec<(D, LogMeta)> instead of just Vec<D>.

@gakonst gakonst changed the title feat(contract): add helper to query events w/ metadata (block num + t… feat(contract): add helper to query events w/ metadata (block num + tx hash) Jun 21, 2020
@gakonst gakonst force-pushed the feature/event-metadata branch from 50bd794 to d52007a Compare June 21, 2020 18:18
@gakonst gakonst merged commit 7a17e54 into master Jun 21, 2020
@gakonst gakonst deleted the feature/event-metadata branch June 21, 2020 22:08
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
* feat: add rustfmt.toml

* drop max_width
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.

1 participant