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

Filter option doesn't work in getPastEvents #5862

@avkos

Description

@avkos

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.

Metadata

Metadata

Assignees

Labels

1.x1.0 related issuesBugAddressing a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions