-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat: decoding candidates for unverified contracts #1466
Conversation
7d8a175
to
fb3587b
Compare
Pull Request Test Coverage Report for Build dcfff138-763e-440b-aea1-904ae556fca1
💛 - Coveralls |
I'm not able to get this to work correctly. I deployed and verified a simple token here: https://blockscout.com/poa/core/address/0x8deb2e426835067f48ac034958cdd9daa38bd0a2/contracts If you want to replicate this locally the only thing extra you might need is the constructor arguments:
This contract has a simple function
which is used by most other token transfers. They have the same 4byte signature. I viewed a transaction with the same 4byte signature but there was no decoding of this input. 0x9f6079797ff552b661944d2fbaaa7b394b872b6d06254810a8fe2667e2e833e8 |
It also used an identifier of |
I'll take a look now. |
The error can be shown just w/in the ex_abi library in a console like so:
@ayrat555 would you mind taking a look also if you get the chance? |
ce44dbd
to
2e70958
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After playing with some contracts, I think it looks really good. The only change I would request is the danger
to info
for unverified contracts.
apps/block_scout_web/lib/block_scout_web/templates/transaction/_decoded_input.html.eex
Outdated
Show resolved
Hide resolved
2e70958
to
05c396e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, as I see we already use this UI for displaying of decoded inputs for verified contracts. Thus, forget my comment about UI 😃. |
8ed2d09
to
3d478f5
Compare
3d478f5
to
48f363e
Compare
Motivation
Changelog
Enhancements