-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Export used events (and errors) instead of just declared #9765
Comments
Are you saying that events declared in the library are listed in the library's ABI, but they are not listed in the ABI of the contract that emits the library's events? If yes, then this is not a bug, but it is probably something we want to think over, especially as we provide more access to elements at the file-level: We could provide access to errors and events that are used from a function of a contract, even if they are not defined in that contract. |
events declared in the library are not listed in any ABI. |
Remix shows the 'LogTrade' event in the "Events" library in the first code for me. Where are you looking for the events? |
That's only the ABI for the contract at that address, not for the library it uses. |
This is the library address: https://etherscan.io/address/0x56e7d4520abfecf10b38368b00723d9bd3c21ee1#code |
If contract is using this library for execution and firing these events - these event should appear in contracts ABI in my opinion |
The library address you mention is for a different library. The In any case, we should find a way to export the used events as the title of the issue says. |
For future reference, this would need #10332 for a proper implementation. The following cases need to be supported:
|
https://etherscan.io/address/0x1e0447b19bb6ecfdae1e4ae1694b0c3659614e4e#code
Proxy to https://etherscan.io/address/0x56e7d4520abfecf10b38368b00723d9bd3c21ee1#code
Contract ABI not include event like: LogTrade, LogSell
not sure it is Etherscan problem or solidy compiler?
The text was updated successfully, but these errors were encountered: