Hacker News new | ask | show | jobs
by mewwts 2750 days ago
Super curious to how this works - care to elaborate a bit? Any chance you could use this to decompile arbitrary contracts into ABIs?
1 comments

As in getting an interface definition file? My guess would be no. I don't believe that compiled methods are annotated with any type information for the arguments or anything else. You might be able to infer something about the ABI by looking for common snippets of byte code used for decoding values from the message call input. But that probably wouldn't be consistently reliable and might also not always indicate the exact type being decoded.

But I could be wrong.