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

Arrays and strings as event topics #344

Closed
chriseth opened this issue Nov 16, 2015 · 2 comments
Closed

Arrays and strings as event topics #344

chriseth opened this issue Nov 16, 2015 · 2 comments
Assignees
Labels
1.x 1.0 related issues 2.x 2.0 related issues Enhancement Includes improvements or optimizations Stale Has not received enough activity

Comments

@chriseth
Copy link
Contributor

Arrays (including bytes and string) cannot be used as event topics as they are. Solidity automatically sha3-hashes such arguments them before setting them as topic. It might be worthwhile to do this also automatically in web3.js when filtering for events.

@chriseth chriseth added the Enhancement Includes improvements or optimizations label Nov 16, 2015
@frozeman frozeman closed this as completed Aug 8, 2017
@frozeman frozeman reopened this Aug 8, 2017
@frozeman
Copy link
Contributor

frozeman commented Aug 8, 2017

Does solidity also hashes strings and bytes longer than 32 bytes?

@nivida nivida self-assigned this Aug 9, 2018
@nivida nivida added 1.x 1.0 related issues 2.x 2.0 related issues labels Jun 20, 2019
@github-actions
Copy link

github-actions bot commented Jul 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions

@github-actions github-actions bot added the Stale Has not received enough activity label Jul 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x 1.0 related issues 2.x 2.0 related issues Enhancement Includes improvements or optimizations Stale Has not received enough activity
Projects
None yet
Development

No branches or pull requests

3 participants