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

Fix error when decoding events containing indexed strings as parameters #1626

Closed
wants to merge 1 commit into from

Conversation

jimmygchen
Copy link

@jimmygchen jimmygchen commented May 12, 2018

Fixes #1566 & #550.

Subscribing to events containing indexed strings causes the application to crash. This is because indexed string parameters are stored as hash values in the topics.

@coveralls
Copy link

coveralls commented May 12, 2018

Coverage Status

Coverage increased (+0.005%) to 85.635% when pulling 11f6d8d on jchen86:1.0 into c0e727e on ethereum:1.0.

@frozeman
Copy link
Contributor

frozeman commented Aug 8, 2018

Basically all dynamic types are strored as hashes and shouldn't be decoded. The soon to be merged #1751 branch should fix that. See https://github.com/ethereum/web3.js/blob/newAbiLib/packages/web3-eth-abi/src/index.js#L272-L274

Thanks for the contribution anyway.

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 this pull request may close these issues.

3 participants