Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Filter option doesn't work in getPastEvents #5862

Closed
avkos opened this issue Feb 22, 2023 · 0 comments · Fixed by #6015
Closed

Filter option doesn't work in getPastEvents #5862

avkos opened this issue Feb 22, 2023 · 0 comments · Fixed by #6015
Assignees
Labels
1.x 1.0 related issues Bug Addressing a bug

Comments

@avkos
Copy link
Contributor

avkos commented Feb 22, 2023

related to #1219

filter option doesn't work in getPastEvents('allEvents')

const contract = new web3.eth.Contract(Basic.abi,contractAddress)
 const res = await contract.getPastEvents('allEvents',{
         fromBlock: 0,
         filter: {
             val: 12
         }
 })

Expected behavior

Should return filtered events.
documentation - here

Actual behavior

Do not filter events. Returns all of them.

@avkos avkos added 1.x 1.0 related issues Bug Addressing a bug labels Feb 22, 2023
@avkos avkos self-assigned this Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1.x 1.0 related issues Bug Addressing a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant