shazow / whatsabi

Extract the ABI (and resolve proxies, and get other metadata) from Ethereum bytecode, even without source code.
https://shazow.github.io/whatsabi/
MIT License
1.07k stars 77 forks source link

loaders: Avoid exception when Etherscan returns an empty response #141

Closed yohamta closed 1 month ago

yohamta commented 1 month ago

Hi @shazow,

I made a small adjustment. This fix is necessary because, in MultiABILoader, when an exception occurs in the Etherscan loader, it does not fall back to the Sourcify loader (when they are set in MultiABILoader in this order). I would appreciate it if you could kindly review it.

Example response from Etherscan API: image

shazow commented 1 month ago

Looks good, thank you!