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: json-abi not using anonymous when converting to interface #342

Merged
merged 2 commits into from
Oct 8, 2023

Conversation

Will-Smith11
Copy link
Contributor

Hey so was seeing what would happen if I ran all of the abis ever verified on etherscan through alloy's sol macro and this was one of the errors I ran into.
This error occurs due to the fact that when we go to convert parsed json-abi into a interface for syn-solidity to then parse as a normalization step, the anonymous keyword on events was not getting included into the interface and was causing an error.
Heres an example:
https://etherscan.io/address/0x29c1aaa2e5bd43692f516d9a0c3d2a0f37b59053#code
image

Copy link
Member

@DaniPopes DaniPopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks!

crates/json-abi/src/to_sol.rs Outdated Show resolved Hide resolved
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
@DaniPopes DaniPopes merged commit 27375c8 into alloy-rs:main Oct 8, 2023
20 checks passed
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.

2 participants