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

No Bloom-related functions in web3.utils? #3290

Closed
jmahhh opened this issue Dec 28, 2019 · 1 comment · Fixed by #3291
Closed

No Bloom-related functions in web3.utils? #3290

jmahhh opened this issue Dec 28, 2019 · 1 comment · Fixed by #3291

Comments

@jmahhh
Copy link

jmahhh commented Dec 28, 2019

Expected behavior

web3.utils.isTopicInBloom is a function, as documented.

Actual behavior

web3.utils.isTopicInBloom is not a function. All bloom related functions in the documentation appear to be absent from web3.utils.

Steps to reproduce the behavior

Try to access any bloom related functions in web3.utils.

Logs

error undefined: TypeError: web3.utils.isTopicInBloom is not a function

Versions

web3 1.2.4

@joshstevens19
Copy link
Contributor

joshstevens19 commented Dec 29, 2019

Hey thanks for raising this, it looks like it was forgotten to export these functions on the index.js on the utils package, this PR fixes that > #3291

If you're eager to use the bloom filters features and don't want to wait for a new web3 release to come out you can install ethereum-bloom-filter package directly. All web3js does is export functions from that package so to avoid waiting for a new web3js release you can download it directly here > https://www.npmjs.com/package/ethereum-bloom-filters

Will close ticket as this is now fixed (once merged), a solution in how to get around this without waiting is highlighted as well. This will be in the next web3js release. Thanks

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

Successfully merging a pull request may close this issue.

2 participants