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

Description
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.