Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter logs by Indexed return values #2

Open
1 of 2 tasks
mattvick opened this issue May 18, 2017 · 2 comments
Open
1 of 2 tasks

Filter logs by Indexed return values #2

mattvick opened this issue May 18, 2017 · 2 comments

Comments

@mattvick
Copy link

ethjs-filter

Issue Type

Description

It is not possible to pass Indexed return values you want to filter the logs by to contract filters, as it is using web3.js contract-events. This would be useful.

From the web3.js docs:

var event = myContractInstance.MyEvent({valueA: 23} [, additionalFilterObject])

Parameters

  1. Object - Indexed return values you want to filter the logs by, e.g. {'valueA': 1, 'valueB': [myFirstAddress, mySecondAddress]}. By default all filter values are set to null. It means, that they will match any event of given type sent from this contract.
@SilentCicero
Copy link
Member

The contrat object needs to be updated with the latest ethjs-abi, you right, this will cause issues

@pelle we should get this setup properly with the new ethjs-abi. Lets do a call soon.

@jamesmorgan
Copy link

Any news on this - is it possible to filters logs on indexes with ethjs these days? I cant find any docs to say its possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants