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.06k stars 74 forks source link

switch viem and ethersv5 provider order #94

Closed Plopmenz closed 4 months ago

Plopmenz commented 4 months ago

Quick fix to make whatsabi compatible with the latest version of the viem public client. Ideally this should not rely on a deprecated function being present but for example on the "type" property of the provider being equal to "publicClient" (or anything else that can be used to difference providers).

Fixes issue #93

shazow commented 4 months ago

Good call, thank you! I'll try to get a new release out soon.