-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conflict for Events with same name for generated abi #1781
Labels
bug
A bug in behaviour or functionality
Comments
@ShawnWu0x investigating this |
Any updates on this? Also encountering the same issue in lukso-network/lsp-smart-contracts#469 |
How would you like to have the name of duplicated event @CJ42? I'm currently working on it. It is possible to create in the wrapper a 'numbered list', e.g. :
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug_title
In Solidity, the events may have same names, but with different parameters.
Such as Compound's controller contract
There are 2 ActionPaused events with different parameters.
If we generate the Java file with web3jgen for it, there will be 2 global parameters with name ACTIONPAUSED_EVENT in the generated JAVA file.
This is not allowed in Java.
Steps To Reproduce
web3j generate solidity -a abc.abi -b abc.bin -o ./ -p abi
Expected behavior
The generated java file should has no ERROR.
Actual behavior
The generated java file built failed with ERROR.
Environment
Additional context
The text was updated successfully, but these errors were encountered: